diff --git a/bin/updates-available b/bin/updates-available index a337c6dc..46baba64 100755 --- a/bin/updates-available +++ b/bin/updates-available @@ -49,11 +49,12 @@ mycache_timestamp=`stat -c "%Y" $mycache 2>/dev/null || echo 0` diff=`expr $now - $cache_timestamp` u= # If global updates-available cache is present, and newer than mycache, and -# within expiration, use it. +# within expiration, use it, and cache it (to preserve across reboots). # Only available in Jaunty+. if [ -r $cache -a $cache_timestamp -gt $mycache_timestamp -a $diff -lt $EXPIRATION ]; then u=`grep -m 1 "^[0-9]" $cache | sed "s/\s.*$//"` s=`grep -m 2 "^[0-9]" $cache | tail -n 1 | sed "s/\s.*$//"` + cp -a "$cache" "$mycache" print_updates $u $s fi diff --git a/debian/changelog b/debian/changelog index 062f4701..284c0350 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,8 +1,10 @@ -screen-profiles (1.40) unreleased; urgency=low +screen-profiles (1.40-0ubuntu1) jaunty; urgency=low + * bin/updates-available: cache /var/run/updates-available locally, to + persist across reboots, LP: #344993 * profiles/logos/suse: added a simple SuSE green on white logo - -- Dustin Kirkland Tue, 17 Mar 2009 13:26:14 -0500 + -- Dustin Kirkland Wed, 18 Mar 2009 14:11:56 -0500 screen-profiles (1.39-0ubuntu1) jaunty; urgency=low