summaryrefslogtreecommitdiff
path: root/debian/preinst
diff options
context:
space:
mode:
Diffstat (limited to 'debian/preinst')
-rw-r--r--debian/preinst13
1 files changed, 13 insertions, 0 deletions
diff --git a/debian/preinst b/debian/preinst
new file mode 100644
index 00000000..0c6b6fb4
--- /dev/null
+++ b/debian/preinst
@@ -0,0 +1,13 @@
+#! /bin/sh
+
+set -e
+
+if [ "install" = "$1" ] || [ "upgrade" = "$1" ]; then
+ if [ "`dpkg-divert --list zenity`" != "" ]; then
+ # I borked the divert earlier, this is left behind from gnome-utils.
+ rm -f /usr/bin/gdialog.real
+ dpkg-divert --package zenity --remove /usr/bin/gdialog
+ fi
+fi
+
+#DEBHELPER#
bgstack15