rev 19568 - kde-extras/icecream/trunk/debian

Pino Toscano pino at alioth.debian.org
Fri May 24 15:41:45 UTC 2013


Author: pino
Date: 2013-05-24 15:41:45 +0000 (Fri, 24 May 2013)
New Revision: 19568

Modified:
   kde-extras/icecream/trunk/debian/icecc.postinst
Log:
check for existance, before moving away


Modified: kde-extras/icecream/trunk/debian/icecc.postinst
===================================================================
--- kde-extras/icecream/trunk/debian/icecc.postinst	2013-05-24 15:29:34 UTC (rev 19567)
+++ kde-extras/icecream/trunk/debian/icecc.postinst	2013-05-24 15:41:45 UTC (rev 19568)
@@ -37,11 +37,13 @@
         if dpkg --compare-versions "$2" lt "1.0.0-1~"; then
                 # unregister the old init script
                 update-rc.d icecc remove >/dev/null
-                # move away the old /etc/defaults/icecc; since the old version
-                # was modified in postinst, it cannot be removed by looking
-                # at its md5sum
-                echo "Moving obsolete conffile /etc/defaults/icecc out of the way..."
-                mv -f "/etc/defaults/icecc" "/etc/defaults/icecc.dpkg-bak"
+                if [ -e /etc/defaults/icecc ]; then
+                        # move away the old /etc/defaults/icecc; since the
+                        # old version was modified in postinst, it cannot
+                        # be removed by looking at its md5sum
+                        echo "Moving obsolete conffile /etc/defaults/icecc out of the way..."
+                        mv -f "/etc/defaults/icecc" "/etc/defaults/icecc.dpkg-bak"
+                fi
         fi
 fi
 




More information about the pkg-kde-commits mailing list