mirror of
https://github.com/dustinkirkland/byobu
synced 2025-08-24 07:06:19 -07:00
* bin/updates-available: improve counting of yum updates available
Signed-off-by: Dustin Kirkland <kirkland@canonical.com>
This commit is contained in:
parent
a8ad735f5c
commit
fda64535f1
1 changed files with 2 additions and 1 deletions
|
@ -105,7 +105,8 @@ elif [ -x /usr/bin/zypper ]; then
|
||||||
/usr/bin/zypper --no-refresh lu --best-effort | grep 'v |' | wc -l > $mycache &
|
/usr/bin/zypper --no-refresh lu --best-effort | grep 'v |' | wc -l > $mycache &
|
||||||
elif [ -x /usr/bin/yum ]; then
|
elif [ -x /usr/bin/yum ]; then
|
||||||
# If yum exists, use it
|
# If yum exists, use it
|
||||||
/usr/bin/yum list updates | grep -c "updates" > $mycache &
|
# TODO: We need a better way of counting updates available from a RH expert
|
||||||
|
/usr/bin/yum list updates | egrep -v "Updated Packages|Loaded plugins" | wc -l > $mycache &
|
||||||
else
|
else
|
||||||
# If we're here, we have no idea
|
# If we're here, we have no idea
|
||||||
print_updates "?"
|
print_updates "?"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue