From 538de888b88a13b83044849dedfbf2b39fa7967f Mon Sep 17 00:00:00 2001 From: Ross Burton Date: Tue, 20 Apr 2004 15:23:37 +0000 Subject: New upstream --- debian/preinst | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'debian/preinst') 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# -- cgit