clean the cache file of extra text

Signed-off-by: Dustin Kirkland <kirkland@canonical.com>
This commit is contained in:
Dustin Kirkland 2009-05-18 07:21:24 +01:00
commit d16041b8ea

View file

@ -74,7 +74,7 @@ fi
if [ -r $mycache -a -O $mycache ]; then
diff=`expr $now - $mycache_timestamp`
if [ $diff -lt $EXPIRATION ]; then
print_updates `cat $mycache`
print_updates `cat $mycache | grep "^[0-9]" | sed "s/ .*$//"`
fi
else
# Otherwise, let's quickly clear the cache, and then recreate it with