X-Git-Url: http://ftp.carnet.hr/carnet-debian/scm?a=blobdiff_plain;f=debian%2Fpreinst;h=cfcffc8f23e3f006e2771c9bd35997c7bee2e4e5;hb=a711f425d89c3b95374bf2947187ea6576ab0fc9;hp=6396ffb70d1e9693655c9582978a2d4283f99f60;hpb=652c23a8c246d2a9ce4971fadf9a56c37e69a498;p=squirrelmail-cn.git diff --git a/debian/preinst b/debian/preinst index 6396ffb..cfcffc8 100644 --- a/debian/preinst +++ b/debian/preinst @@ -2,29 +2,34 @@ set -e -case "$1" in - install|upgrade) - ;; +# summary of how this script can be called: +# * `install' +# * `install' +# * `upgrade' +# * `abort-upgrade' +# for details, see http://www.debian.org/doc/debian-policy/ or +# the debian-policy package - abort-upgrade) - exit 0 - ;; - *) - echo "preinst called with unknown argument '$1'" >&2 - exit 1 - ;; +case "$1" in + install|upgrade) + dpkg-divert --package squirrelmail-cn --add --rename \ + --divert /usr/share/squirrelmail/functions/strings.php.squirrelmail \ + /usr/share/squirrelmail/functions/strings.php + ;; + + abort-upgrade) + ;; + + *) + echo "preinst called with unknown argument \`$1'" >&2 + exit 1 + ;; esac -# leftover from 1.2.6-2 -if dpkg-divert --list | \ - egrep -q 'diversion of .*functions/display_messages.php .* by squirrelmail-cn'; then - - rm -f /usr/share/squirrelmail/functions/display_messages.php +# dh_installdeb will replace this with shell code automatically +# generated by other debhelper scripts. - dpkg-divert --package squirrelmail-cn --remove --rename --divert \ - /usr/share/squirrelmail/functions/display_messages.php.divert-cn \ - /usr/share/squirrelmail/functions/display_messages.php -fi +#DEBHELPER# exit 0