Properly disable apt-listchanges.
authorValentin Vidic <Valentin.Vidic@CARNet.hr>
Thu, 9 Feb 2012 13:07:11 +0000 (14:07 +0100)
committerValentin Vidic <Valentin.Vidic@CARNet.hr>
Thu, 9 Feb 2012 13:07:11 +0000 (14:07 +0100)
src/functions.sh

index 83fc87d..f5a0859 100644 (file)
@@ -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