From fb90ba1508784889f95c7795560c70d904bc60b9 Mon Sep 17 00:00:00 2001 From: Valentin Vidic Date: Mon, 13 Feb 2012 13:06:23 +0100 Subject: [PATCH] Always cleanup diversion. --- src/functions.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/functions.sh b/src/functions.sh index deffe51..f85117d 100644 --- a/src/functions.sh +++ b/src/functions.sh @@ -793,9 +793,8 @@ apt_listchanges () { ;; enable) - if [ -f $file.disabled ]; then - dpkg-divert --rename --remove $file || true - fi + # cleanup the diversion even if the file is already removed + dpkg-divert --rename --remove $file || true ;; esac done -- 1.7.10.4