[Pkg-xfce-commits] r5748 - desktop/trunk/exo/debian

Yves-Alexis Perez corsac at alioth.debian.org
Mon May 9 08:58:59 UTC 2011


Author: corsac
Date: 2011-05-09 20:58:55 +0000 (Mon, 09 May 2011)
New Revision: 5748

Modified:
   desktop/trunk/exo/debian/libexo-common.preinst
Log:
handle first install more gracefully


Modified: desktop/trunk/exo/debian/libexo-common.preinst
===================================================================
--- desktop/trunk/exo/debian/libexo-common.preinst	2011-05-09 19:41:45 UTC (rev 5747)
+++ desktop/trunk/exo/debian/libexo-common.preinst	2011-05-09 20:58:55 UTC (rev 5748)
@@ -12,9 +12,10 @@
 # Remove symlinks for el and sv which appeared in 0.6.1-1
 case "$1" in
 install|upgrade)
+    /bin/bash
     if dpkg --compare-versions "$2" lt "0.6.1-1"; then
-      rm /usr/share/doc/exo/html/el/images
-      rm /usr/share/doc/exo/html/sv/images
+      [ -h /usr/share/doc/exo/html/el/images ] && rm /usr/share/doc/exo/html/el/images || true
+      [ -h /usr/share/doc/exo/html/sv/images ] && rm /usr/share/doc/exo/html/sv/images || true
     fi
 esac
 




More information about the Pkg-xfce-commits mailing list