From c6f9621645e30e27f431d42166442b8046d2a00c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Frings-F=C3=BCrst?= Date: Sat, 26 Feb 2022 09:43:52 +0100 Subject: d/sane-utils.preinst: Remove man file only on update --- debian/changelog | 6 ++++++ debian/sane-utils.preinst | 5 +---- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/debian/changelog b/debian/changelog index ca09256..10e30b4 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +sane-backends (1.1.1-4) UNRELEASED; urgency=medium + + * debian/sane-utils.preinst: Remove man file only on update. + + -- Jörg Frings-Fürst Sat, 26 Feb 2022 09:41:00 +0100 + sane-backends (1.1.1-3) unstable; urgency=medium * Remove test artefact (debian/1.sh). diff --git a/debian/sane-utils.preinst b/debian/sane-utils.preinst index 2e49781..1b5f826 100644 --- a/debian/sane-utils.preinst +++ b/debian/sane-utils.preinst @@ -6,8 +6,7 @@ MANPAGE=/usr/share/man/man5/sane-umax_pp.5.gz MANLINK=/usr/share/man/man5/umax_pp.5.gz - -if [ "$1" = install ] || [ "$1" = upgrade ]; then +if [ "$1" = upgrade ]; then ## Remove obsolete manpages that are now provided by sane-common if dpkg --compare-versions "$2" le "1.1.1-2"; then @@ -25,6 +24,4 @@ fi - - #DEBHELPER# -- cgit v1.2.3