From: Dragan Dosen Date: Thu, 12 Jun 2008 11:27:42 +0000 (+0200) Subject: debian/preinst - remove diversions for: X-Git-Tag: v2%1.4.21+2~11 X-Git-Url: http://ftp.carnet.hr/carnet-debian/scm?a=commitdiff_plain;h=821e3a1c91c5376cbd8a9c3a63a3f6bf07e935fb;p=squirrelmail-cn.git debian/preinst - remove diversions for: /usr/share/squirrelmail/locale/hr_HR/LC_MESSAGES/squirrelmail.mo /usr/share/squirrelmail/locale/hr_HR/LC_MESSAGES/squirrelmail.po /usr/share/squirrelmail/images/sec_remove_hr_HR.png --- diff --git a/debian/changelog b/debian/changelog index 9d2ce08..ce46167 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,11 @@ +squirrelmail-cn (2:1.4.9a-4) stable; urgency=low + + * Izmjene unutar debian/preinst datoteke: brisanje divertova + za squirrelmail.mo, squirrelmail.po i sec_remove_hr_HR.png, + prije pocetka instalacije paketa. + + -- Dragan Dosen Thu, 12 Jun 2008 13:20:32 +0200 + squirrelmail-cn (2:1.4.9a-3) stable; urgency=low * Novi logo za CARNet Squirrelmail - sm_carnet_logo.png. diff --git a/debian/preinst b/debian/preinst index 6396ffb..50f4853 100644 --- a/debian/preinst +++ b/debian/preinst @@ -16,6 +16,26 @@ case "$1" in ;; esac +if dpkg-divert --list | \ + egrep -q 'diversion of .*locale/hr_HR/.* .* by squirrelmail-cn'; then + + dpkg-divert --quiet --package squirrelmail-cn --remove --rename --divert \ + /usr/share/squirrelmail/locale/hr_HR/LC_MESSAGES/squirrelmail.mo.squirrelmail \ + /usr/share/squirrelmail/locale/hr_HR/LC_MESSAGES/squirrelmail.mo || true + + dpkg-divert --quiet --package squirrelmail-cn --remove --rename --divert \ + /usr/share/squirrelmail/locale/hr_HR/LC_MESSAGES/squirrelmail.po.squirrelmail \ + /usr/share/squirrelmail/locale/hr_HR/LC_MESSAGES/squirrelmail.po || true +fi + +if dpkg-divert --list | \ + egrep -q 'diversion of .*images/sec_remove_hr_HR.png .* by squirrelmail-cn'; then + + dpkg-divert --quiet --package squirrelmail-cn --remove --rename --divert \ + /usr/share/squirrelmail/images/sec_remove_hr_HR.png.squirrelmail \ + /usr/share/squirrelmail/images/sec_remove_hr_HR.png || true +fi + # leftover from 1.2.6-2 if dpkg-divert --list | \ egrep -q 'diversion of .*functions/display_messages.php .* by squirrelmail-cn'; then