summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xdebian/zutils.preinst11
1 files changed, 10 insertions, 1 deletions
diff --git a/debian/zutils.preinst b/debian/zutils.preinst
index b9aa4a5..2286dd9 100755
--- a/debian/zutils.preinst
+++ b/debian/zutils.preinst
@@ -11,7 +11,16 @@ case "${1}" in
done
;;
- upgrade|abort-upgrade)
+ upgrade)
+ # upgrading from zutils 1.7-2
+ if [ ! -e /bin/zcat.gzip ]
+ then
+ dpkg-divert --package zutils --quiet --add --rename --divert /bin/zcat.gzip /bin/zcat
+ dpkg-divert --package zutils --quiet --add --rename --divert /usr/share/man/man1/zcat.gzip.1.gz /usr/share/man/man1/zcat.1.gz
+ fi
+ ;;
+
+ abort-upgrade)
;;