X-Git-Url: http://ftp.carnet.hr/carnet-debian/scm?a=blobdiff_plain;f=src%2Ffunctions.sh;fp=src%2Ffunctions.sh;h=f5a085903dcb37749cefd7b322267ba235bf2dbd;hb=f2f400649edabeafdef9e4782a4d327c3ec79a07;hp=83fc87d6a0c3a456c8dd0d673bf7361a3cf24af0;hpb=1e7fccdeae88ff8dd143dd1c38083f8c5fcce67b;p=carnet-upgrade.git 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