r17781 - in /packages/unstable/devhelp/debian: changelog devhelp.preinst

lool at users.alioth.debian.org lool at users.alioth.debian.org
Fri Nov 28 19:43:26 UTC 2008


Author: lool
Date: Fri Nov 28 19:43:25 2008
New Revision: 17781

URL: http://svn.debian.org/wsvn/pkg-gnome/?sc=1&rev=17781
Log:
Fix bogus checks in preinst and clean it up.

Modified:
    packages/unstable/devhelp/debian/changelog
    packages/unstable/devhelp/debian/devhelp.preinst

Modified: packages/unstable/devhelp/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-gnome/packages/unstable/devhelp/debian/changelog?rev=17781&op=diff
==============================================================================
--- packages/unstable/devhelp/debian/changelog (original)
+++ packages/unstable/devhelp/debian/changelog Fri Nov 28 19:43:25 2008
@@ -1,3 +1,9 @@
+devhelp (0.21-3) UNRELEASED; urgency=low
+
+  * Fix bogus checks in preinst and clean it up.
+
+ -- Loic Minier <lool at dooz.org>  Fri, 28 Nov 2008 20:42:21 +0100
+
 devhelp (0.21-2) unstable; urgency=low
 
   * debian/control

Modified: packages/unstable/devhelp/debian/devhelp.preinst
URL: http://svn.debian.org/wsvn/pkg-gnome/packages/unstable/devhelp/debian/devhelp.preinst?rev=17781&op=diff
==============================================================================
--- packages/unstable/devhelp/debian/devhelp.preinst (original)
+++ packages/unstable/devhelp/debian/devhelp.preinst Fri Nov 28 19:43:25 2008
@@ -2,20 +2,11 @@
 
 set -e
 
-if [ "$1" = "upgrade" ] && [ "$1" = "install" ]; then
-    if [ -n "$2" ]; then
-        if dpkg --compare-versions "$2" lt "0.6.0-1"; then
-            test -f /etc/gconf/schemas/devhelp.schemas && \
-                rm -f /etc/gconf/schemas/devhelp.schemas
-
-            test -d /etc/gconf/gconf.xml.defaults/apps/devhelp && \
-                rm -fr /etc/gconf/gconf.xml.defaults/apps/devhelp
-
-            test -d /etc/gconf/gconf.xml.defaults/schemas/apps/devhelp && \
-                rm -fr /etc/gconf/gconf.xml.defaults/schemas/apps/devhelp
-        fi
-    fi
-    true
+if [ "$1" = "upgrade" ] && dpkg --compare-versions "$2" lt-nl "0.6.0-1"; then
+    rm -rf /etc/gconf/schemas/devhelp.schemas \
+           /etc/gconf/gconf.xml.defaults/apps/devhelp
+           /etc/gconf/gconf.xml.defaults/schemas/apps/devhelp
 fi
 
 #DEBHELPER#
+




More information about the pkg-gnome-commits mailing list