* usr/lib/byobu/updates_available: LP: #1255493

- fix updates_available for pkcon
  - Thanks, kealthou@gmail.com
This commit is contained in:
Dustin Kirkland 2013-11-29 09:35:47 -06:00
commit 8ce10261fe
2 changed files with 4 additions and 1 deletions

3
debian/changelog vendored
View file

@ -12,6 +12,9 @@ byobu (5.66) unreleased; urgency=low
- fix the name of the __memory_detail() function - fix the name of the __memory_detail() function
* usr/bin/byobu-config: LP: #1255484 * usr/bin/byobu-config: LP: #1255484
- reload-required should always be in run-dir, not config-dir - reload-required should always be in run-dir, not config-dir
* usr/lib/byobu/updates_available: LP: #1255493
- fix updates_available for pkcon
- Thanks, kealthou@gmail.com
-- Dustin Kirkland <kirkland@ubuntu.com> Mon, 18 Nov 2013 12:31:12 -0600 -- Dustin Kirkland <kirkland@ubuntu.com> Mon, 18 Nov 2013 12:31:12 -0600

View file

@ -56,7 +56,7 @@ ___update_cache() {
flock -xn "$flock" apt-get -s -o Debug::NoLocking=true upgrade | grep -c ^Inst >$mycache 2>/dev/null & flock -xn "$flock" apt-get -s -o Debug::NoLocking=true upgrade | grep -c ^Inst >$mycache 2>/dev/null &
elif $BYOBU_TEST pkcon >/dev/null; then elif $BYOBU_TEST pkcon >/dev/null; then
# use packagekit to show list of packages # use packagekit to show list of packages
flock -xn "$flock" pkcon get-updates -p | grep -c '^Package' >"$mycache" 2>/dev/null & LC_ALL=C flock -xn "$flock" pkcon get-updates -p | awk '/^Results:$/ { start=NR }; /^Security/ { security++ }; END { if (!/There are no updates available at this time./) { print NR-start, security }}' > "$mycache" 2>/dev/null &
elif $BYOBU_TEST zypper >/dev/null; then elif $BYOBU_TEST zypper >/dev/null; then
# If zypper exists, use it # If zypper exists, use it
flock -xn "$flock" zypper --no-refresh lu --best-effort | grep -c 'v |' >$mycache 2>/dev/null & flock -xn "$flock" zypper --no-refresh lu --best-effort | grep -c 'v |' >$mycache 2>/dev/null &