* bin/updates_available: direct which out to devnull

Signed-off-by: Dustin Kirkland <kirkland@canonical.com>
This commit is contained in:
Dustin Kirkland 2009-06-19 01:17:15 -05:00
commit 602fdaa7f8
2 changed files with 5 additions and 5 deletions

View file

@ -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 &

4
debian/changelog vendored
View file

@ -1,8 +1,8 @@
byobu (2.13) unreleased; urgency=low
* UNRELEASED
* bin/updates_available: direct which out to devnull
-- Dustin Kirkland <kirkland@ubuntu.com> Fri, 19 Jun 2009 00:50:53 -0500
-- Dustin Kirkland <kirkland@ubuntu.com> Fri, 19 Jun 2009 01:16:50 -0500
byobu (2.12-0ubuntu1) karmic; urgency=low