debian/preinst - remove diversions for:
authorDragan Dosen <bane@nekkar.carnet.hr>
Thu, 12 Jun 2008 11:27:42 +0000 (13:27 +0200)
committerDragan Dosen <bane@nekkar.carnet.hr>
Thu, 12 Jun 2008 11:27:42 +0000 (13:27 +0200)
    /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

debian/changelog
debian/preinst

index 9d2ce08..ce46167 100644 (file)
@@ -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 <ddosen@ffzg.hr>  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.
index 6396ffb..50f4853 100644 (file)
@@ -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