]> code.ossystems Code Review - openembedded-core.git/commitdiff
gconf.bbclass: Drop configure/install/upgarde checks since not all SCMs support these...
authorRichard Purdie <richard@openedhand.com>
Thu, 4 Sep 2008 11:34:26 +0000 (11:34 +0000)
committerRichard Purdie <richard@openedhand.com>
Thu, 4 Sep 2008 11:34:26 +0000 (11:34 +0000)
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@5137 311d38ba-8fff-0310-9ca6-ca027cbcb966

meta/classes/gconf.bbclass

index 686f8e6596f152dc3821e17ead38fcb7043d3872..4fba876854c807b8a9a19e2cf0e349aa05ab7622 100644 (file)
@@ -1,32 +1,28 @@
 DEPENDS += "gconf"
 
 gconf_postinst() {
-if [ "$1" = configure ]; then
-       if [ "x$D" != "x" ]; then
-               exit 1
-       fi
-        SCHEMA_LOCATION=/etc/gconf/schemas
-        for SCHEMA in ${SCHEMA_FILES}; do
-                if [ -e $SCHEMA_LOCATION/$SCHEMA ]; then
-                        HOME=/root GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source` \
-                                gconftool-2 \
-                                --makefile-install-rule $SCHEMA_LOCATION/$SCHEMA > /dev/null
-                fi
-        done
+if [ "x$D" != "x" ]; then
+       exit 1
 fi
+SCHEMA_LOCATION=/etc/gconf/schemas
+for SCHEMA in ${SCHEMA_FILES}; do
+       if [ -e $SCHEMA_LOCATION/$SCHEMA ]; then
+               HOME=/root GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source` \
+                       gconftool-2 \
+                       --makefile-install-rule $SCHEMA_LOCATION/$SCHEMA > /dev/null
+       fi
+done
 }
 
 gconf_prerm() {
-if [ "$1" = remove ] || [ "$1" = upgrade ]; then
-        SCHEMA_LOCATION=/etc/gconf/schemas
-        for SCHEMA in ${SCHEMA_FILES}; do
-                if [ -e $SCHEMA_LOCATION/$SCHEMA ]; then
-                        HOME=/root GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source` \
-                                gconftool-2 \
-                                        --makefile-uninstall-rule $SCHEMA_LOCATION/$SCHEMA > /dev/null
-                fi
-        done
-fi
+SCHEMA_LOCATION=/etc/gconf/schemas
+for SCHEMA in ${SCHEMA_FILES}; do
+       if [ -e $SCHEMA_LOCATION/$SCHEMA ]; then
+               HOME=/root GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source` \
+                       gconftool-2 \
+                       --makefile-uninstall-rule $SCHEMA_LOCATION/$SCHEMA > /dev/null
+       fi
+done
 }
 
 python populate_packages_append () {