From 602fdaa7f815d04cebb861270d471b14d58efe5b Mon Sep 17 00:00:00 2001 From: Dustin Kirkland Date: Fri, 19 Jun 2009 01:17:15 -0500 Subject: [PATCH] * bin/updates_available: direct which out to devnull Signed-off-by: Dustin Kirkland --- bin/updates_available | 6 +++--- debian/changelog | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/bin/updates_available b/bin/updates_available index 27a84785..efdda87d 100755 --- a/bin/updates_available +++ b/bin/updates_available @@ -97,13 +97,13 @@ ionice -c3 -p $$ >/dev/null 2>&1 || true if [ -x /usr/lib/update-notifier/apt-check ]; then # If apt-check binary exists, use it /usr/lib/update-notifier/apt-check 2>&1 | tail -n 1 | sed "s/;/ /" > $mycache & -elif which apt-get 2>/dev/null; then +elif which apt-get >/dev/null; then # If apt-get exists, use it apt-get -s -o Debug::NoLocking=true upgrade | grep -c ^Inst > $mycache & -elif which zypper; then +elif which zypper >/dev/null; then # If zypper exists, use it zypper --no-refresh lu --best-effort | grep 'v |' | wc -l > $mycache & -elif which yum; then +elif which yum >/dev/null; then # If yum exists, use it # TODO: We need a better way of counting updates available from a RH expert yum list updates | egrep -v "Updated Packages|Loaded plugins" | wc -l > $mycache & diff --git a/debian/changelog b/debian/changelog index eea28a8b..2b386545 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,8 +1,8 @@ byobu (2.13) unreleased; urgency=low - * UNRELEASED + * bin/updates_available: direct which out to devnull - -- Dustin Kirkland Fri, 19 Jun 2009 00:50:53 -0500 + -- Dustin Kirkland Fri, 19 Jun 2009 01:16:50 -0500 byobu (2.12-0ubuntu1) karmic; urgency=low