bin/updates_available: fix updates available, broken when updates

cache file does not exist, LP: #434736
This commit is contained in:
Dustin Kirkland 2009-09-22 09:33:27 -07:00
commit d0f79133a8
2 changed files with 4 additions and 3 deletions

View file

@ -84,7 +84,7 @@ mycache="$DIR/$PKG.updates-available"
[ -r $mycache ] && print_updates `grep "^[0-9]" $mycache | sed "s/ .*$//"`
# Update the cache if necessary
if [ "/var/lib/apt" -nt "$mycache" ] || [ "/var/lib/apt/lists" -nt "$mycache" ]; then
if [ ! -e "$mycache" ] || [ "/var/lib/apt" -nt "$mycache" ] || [ "/var/lib/apt/lists" -nt "$mycache" ]; then
# If apt is newer than mycache, background an update now
update_cache "$mycache"
fi

5
debian/changelog vendored
View file

@ -1,8 +1,9 @@
byobu (2.35) unreleased; urgency=low
* UNRELEASED
* bin/updates_available: fix updates available, broken when updates
cache file does not exist, LP: #434736
-- Dustin Kirkland <kirkland@ubuntu.com> Mon, 21 Sep 2009 11:30:19 -0700
-- Dustin Kirkland <kirkland@ubuntu.com> Tue, 22 Sep 2009 09:30:21 -0700
byobu (2.34-0ubuntu1) karmic; urgency=low