summaryrefslogtreecommitdiff
path: root/debian/preinst
diff options
context:
space:
mode:
Diffstat (limited to 'debian/preinst')
-rw-r--r--debian/preinst5
1 files changed, 3 insertions, 2 deletions
diff --git a/debian/preinst b/debian/preinst
index a9f4654d..886d11a3 100644
--- a/debian/preinst
+++ b/debian/preinst
@@ -3,8 +3,9 @@
set -e
if [ "install" = "$1" ] || [ "upgrade" = "$1" ]; then
- dpkg-divert --package zenity --add --rename \
- --divert /usr/bin/gdialog.real /usr/bin/gdialog
+ if [ "`dpkg-divert --list zenity`" != "" ]; then
+ dpkg-divert --package zenity --remove /usr/bin/gdialog
+ fi
fi
#DEBHELPER#
bgstack15