I've done some more comprehensive testing on a full system to come up with this:
-               echo -e "\n(there are other `cat $LAST_RUN_FILE |wc
-l` packages previously reported to you pending an upgrade!)"
+               echo -e "\n(there are $(grep -xf $LAST_RUN_FILE
$TMPFILE |wc -l) other packages previously reported to you pending an
upgrade!)"
--- apticron-1.1.43/apticron	2010-08-30 03:03:39.000000000 +0100
+++ /usr/sbin/apticron	2010-09-17 13:42:23.000000000 +0100
@@ -209,7 +209,7 @@
 	done
 
 	if [ "$DIFF_ONLY" = "1" ] && [ -e "$LAST_RUN_FILE" ]; then
-		echo -e "\n(there are other `cat $LAST_RUN_FILE |wc -l` packages previously reported to you pending an upgrade!)"
+		echo -e "\n(there are $(grep -xf $LAST_RUN_FILE $TMPFILE |wc -l) other packages previously reported to you pending an upgrade!)"
 	fi
 
 	MISSING_DEBS=`apt-get -y --ignore-hold --allow-unauthenticated --print-uris dist-upgrade \

Reply via email to