From 3d9dfb7dfce0749dea5507697ee183c1ca401162 Mon Sep 17 00:00:00 2001 From: Dustin Kirkland Date: Fri, 11 Sep 2009 08:01:36 -0500 Subject: [PATCH] bin/updates_available: also monitor /var/lib/apt/lists for changes, as this is touched on 'apt-get update', LP: #427855 --- bin/updates_available | 2 +- debian/changelog | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/bin/updates_available b/bin/updates_available index b84559af..117cb14b 100755 --- a/bin/updates_available +++ b/bin/updates_available @@ -82,7 +82,7 @@ PKG="byobu" mycache="/var/run/screen/S-$USER/$PKG.updates-available" -if [ "/var/lib/apt" -nt "$mycache" ]; then +if [ "/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" elif [ -r $mycache ]; then diff --git a/debian/changelog b/debian/changelog index 7a18b3b1..745a55b4 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,8 +1,9 @@ byobu (2.32) unreleased; urgency=low - * UNRELEASED + * bin/updates_available: also monitor /var/lib/apt/lists for changes, + as this is touched on 'apt-get update', LP: #427855 - -- Dustin Kirkland Thu, 10 Sep 2009 12:29:09 -0500 + -- Dustin Kirkland Fri, 11 Sep 2009 07:59:50 -0500 byobu (2.31-0ubuntu1) karmic; urgency=low