From: Valentin Vidic Date: Thu, 9 Feb 2012 13:07:11 +0000 (+0100) Subject: Properly disable apt-listchanges. X-Git-Tag: debian/6.0.3~6 X-Git-Url: http://ftp.carnet.hr/carnet-debian/scm?p=carnet-upgrade.git;a=commitdiff_plain;h=f2f400649edabeafdef9e4782a4d327c3ec79a07 Properly disable apt-listchanges. --- diff --git a/src/functions.sh b/src/functions.sh index 83fc87d..f5a0859 100644 --- a/src/functions.sh +++ b/src/functions.sh @@ -787,14 +787,14 @@ apt_listchanges () { case $command in disable) if [ -f $file ]; then - dpkg-divert --local --rename --divert $file.$backup_ext \ + dpkg-divert --local --rename --divert $file.disabled \ --add $file || true fi ;; enable) - if [ -f $file.$backup_ext ]; then - dpkg-divert --remove $file || true + if [ -f $file.disabled ]; then + dpkg-divert --rename --remove $file || true fi ;; esac