From fda64535f14d8532b0f418ca80cdf7089967fd3e Mon Sep 17 00:00:00 2001 From: Dustin Kirkland Date: Mon, 11 May 2009 22:42:34 -0500 Subject: [PATCH] * bin/updates-available: improve counting of yum updates available Signed-off-by: Dustin Kirkland --- bin/updates-available | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bin/updates-available b/bin/updates-available index 2be75add..d39a4fba 100755 --- a/bin/updates-available +++ b/bin/updates-available @@ -105,7 +105,8 @@ elif [ -x /usr/bin/zypper ]; then /usr/bin/zypper --no-refresh lu --best-effort | grep 'v |' | wc -l > $mycache & elif [ -x /usr/bin/yum ]; then # 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 # If we're here, we have no idea print_updates "?"