mirror of
https://github.com/dustinkirkland/byobu
synced 2025-08-22 14:24:39 -07:00
bin/updates_available: fix updates available, broken when updates
cache file does not exist, LP: #434736
This commit is contained in:
parent
ef3287c27b
commit
d0f79133a8
2 changed files with 4 additions and 3 deletions
|
@ -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
5
debian/changelog
vendored
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue