tag 352629 patch thanks --- libnet-perl-1.19.orig/debian/libnet-perl.preinst +++ libnet-perl-1.19/debian/libnet-perl.preinst @@ -0,0 +1,40 @@ +#! /bin/sh +# preinstall script for libnet-perl +set -e; + +# Used to be written with debconf values +oldmd5='7b6cfb833c2b14432ecb9e4e140f0c0e' + +rm_conffile() +{ + if [ ! -e "$1" ]; then + return 0; + fi; + + md5sum="`md5sum \"$1\" |sed -e \"s/ .*//\"`"; + + if [ "$oldmd5" = "$md5sum" ]; then + echo "Removing conffile with default content: $1" >&2; + mv -f "$1" "$1.dpkg-old"; + fi; +} + +case "$1" in + install|upgrade) + if dpkg --compare-versions "$2" le '1:1.19-3.1'; then + # Avoid unnecessary conffile prompts; + # see #352629 + rm_conffile "/etc/libnet.cfg" + fi; + ;; + + abort-upgrade) + ;; + + *) + echo "preinst called with unknown argument \`$1'" >&2; + exit 1; + ;; +esac; + +#DEBHELPER#
-- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]