summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--meta/classes/gconf.bbclass40
1 files changed, 18 insertions, 22 deletions
diff --git a/meta/classes/gconf.bbclass b/meta/classes/gconf.bbclass
index 686f8e6596..4fba876854 100644
--- a/meta/classes/gconf.bbclass
+++ b/meta/classes/gconf.bbclass
@@ -1,32 +1,28 @@
1DEPENDS += "gconf" 1DEPENDS += "gconf"
2 2
3gconf_postinst() { 3gconf_postinst() {
4if [ "$1" = configure ]; then 4if [ "x$D" != "x" ]; then
5 if [ "x$D" != "x" ]; then 5 exit 1
6 exit 1
7 fi
8 SCHEMA_LOCATION=/etc/gconf/schemas
9 for SCHEMA in ${SCHEMA_FILES}; do
10 if [ -e $SCHEMA_LOCATION/$SCHEMA ]; then
11 HOME=/root GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source` \
12 gconftool-2 \
13 --makefile-install-rule $SCHEMA_LOCATION/$SCHEMA > /dev/null
14 fi
15 done
16fi 6fi
7SCHEMA_LOCATION=/etc/gconf/schemas
8for SCHEMA in ${SCHEMA_FILES}; do
9 if [ -e $SCHEMA_LOCATION/$SCHEMA ]; then
10 HOME=/root GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source` \
11 gconftool-2 \
12 --makefile-install-rule $SCHEMA_LOCATION/$SCHEMA > /dev/null
13 fi
14done
17} 15}
18 16
19gconf_prerm() { 17gconf_prerm() {
20if [ "$1" = remove ] || [ "$1" = upgrade ]; then 18SCHEMA_LOCATION=/etc/gconf/schemas
21 SCHEMA_LOCATION=/etc/gconf/schemas 19for SCHEMA in ${SCHEMA_FILES}; do
22 for SCHEMA in ${SCHEMA_FILES}; do 20 if [ -e $SCHEMA_LOCATION/$SCHEMA ]; then
23 if [ -e $SCHEMA_LOCATION/$SCHEMA ]; then 21 HOME=/root GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source` \
24 HOME=/root GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source` \ 22 gconftool-2 \
25 gconftool-2 \ 23 --makefile-uninstall-rule $SCHEMA_LOCATION/$SCHEMA > /dev/null
26 --makefile-uninstall-rule $SCHEMA_LOCATION/$SCHEMA > /dev/null 24 fi
27 fi 25done
28 done
29fi
30} 26}
31 27
32python populate_packages_append () { 28python populate_packages_append () {