From 67b8b012879f8376f9d591064446c6a95fd038bf Mon Sep 17 00:00:00 2001 From: Diego Giovane Pasqualin <dpasqualin@c3sl.ufpr.br> Date: Wed, 2 Jul 2014 19:54:35 -0300 Subject: [PATCH] le-autoupgrade: Remove divert even if the .real file doesn't exist Signed-off-by: Diego Giovane Pasqualin <dpasqualin@c3sl.ufpr.br> --- le-autoupgrade/package/DEBIAN/control | 2 +- le-autoupgrade/package/DEBIAN/postrm | 6 ++---- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/le-autoupgrade/package/DEBIAN/control b/le-autoupgrade/package/DEBIAN/control index 94c825e1..35cc8bd7 100644 --- a/le-autoupgrade/package/DEBIAN/control +++ b/le-autoupgrade/package/DEBIAN/control @@ -1,7 +1,7 @@ Package: le-autoupgrade Priority: important Section: main -Version: 0.0.9 +Version: 0.0.10 Architecture: all Depends: cron | anacron, apt, debianutils, wget Maintainer: LE Maintainer <le-maintainer@c3sl.ufpr.br> diff --git a/le-autoupgrade/package/DEBIAN/postrm b/le-autoupgrade/package/DEBIAN/postrm index f98cbe97..a5d43efc 100755 --- a/le-autoupgrade/package/DEBIAN/postrm +++ b/le-autoupgrade/package/DEBIAN/postrm @@ -32,10 +32,8 @@ divertList=" # Divert files if [[ "$1" != "upgrade" ]]; then for file in $divertList; do - if test -e ${file}.real; then - dpkg-divert --package le-autoupgrade --remove --rename \ - --divert $file{.real,} - fi + dpkg-divert --package le-autoupgrade --remove --rename \ + --divert $file{.real,} done fi -- GitLab