From d16041b8eaa4df466de5a72c5c3dfbb8a8b420cb Mon Sep 17 00:00:00 2001 From: Dustin Kirkland Date: Mon, 18 May 2009 07:21:24 +0100 Subject: [PATCH] clean the cache file of extra text Signed-off-by: Dustin Kirkland --- bin/updates-available | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/updates-available b/bin/updates-available index bc1b4311..9462be37 100755 --- a/bin/updates-available +++ b/bin/updates-available @@ -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