*** update-notifier-orig/data/apt-cdrom-check 2013-03-09 12:27:36.226667000 +0800 --- update-notifier/data/apt-cdrom-check 2013-03-09 11:48:11.729798225 +0800 *************** *** 78,84 **** if $GPG "$d/"*.tar.gz.gpg "$d"/*.tar.gz; then # verified ok, we have a valid upgrader, if it was not ok, the # fallback to the end is ok because we still have packages on it ! exit 2 fi fi done --- 78,91 ---- if $GPG "$d/"*.tar.gz.gpg "$d"/*.tar.gz; then # verified ok, we have a valid upgrader, if it was not ok, the # fallback to the end is ok because we still have packages on it ! ! #LP Bug 887650: check if the version on the CD is older ! THIS_VERSION=`grep DISTRIB_RELEASE /etc/lsb-release | egrep -o "[0-9.]*"` ! VERSION_ON_CD=`grep "Version" $mount_point/dists/oneiric/Release | head -n1 | egrep -o "[0-9.]*"` ! # return 2 if the version on CD is newer ! if [ `echo "$THIS_VERSION < $VERSION_ON_CD" | bc` -eq 1 ]; then ! exit 2 ! fi; fi fi done