summaryrefslogtreecommitdiff
path: root/autoscripts
diff options
context:
space:
mode:
Diffstat (limited to 'autoscripts')
-rw-r--r--autoscripts/postinst-gconf4
-rw-r--r--autoscripts/postinst-python2
-rw-r--r--autoscripts/postrm-gconf7
-rw-r--r--autoscripts/prerm-gconf2
4 files changed, 12 insertions, 3 deletions
diff --git a/autoscripts/postinst-gconf b/autoscripts/postinst-gconf
index c5ee87d5..f4a7c82d 100644
--- a/autoscripts/postinst-gconf
+++ b/autoscripts/postinst-gconf
@@ -1,5 +1,5 @@
if [ "$1" = "configure" ]; then
- SCHEMA_LOCATION=/etc/gconf/schemas
+ SCHEMA_LOCATION=/usr/share/gconf/schemas
SCHEMA_FILES="#SCHEMAS#"
for SCHEMA in $SCHEMA_FILES; do
if [ -e $SCHEMA_LOCATION/$SCHEMA ]; then
@@ -8,4 +8,6 @@ if [ "$1" = "configure" ]; then
--makefile-install-rule $SCHEMA_LOCATION/$SCHEMA > /dev/null
fi
done
+
+ kill -HUP `pidof gconfd-2` >/dev/null 2>&1 || true
fi
diff --git a/autoscripts/postinst-python b/autoscripts/postinst-python
index 6f1f9a5b..c48d1aa6 100644
--- a/autoscripts/postinst-python
+++ b/autoscripts/postinst-python
@@ -1,5 +1,5 @@
PYTHON=#PYVER#
-if which $PYTHON >/dev/null 2>&1; then
+if which $PYTHON >/dev/null 2>&1 && [ -e /usr/lib/$PYTHON/compileall.py ]; then
DIRLIST="#DIRLIST#"
for i in $DIRLIST ; do
$PYTHON -O /usr/lib/$PYTHON/compileall.py -q $i
diff --git a/autoscripts/postrm-gconf b/autoscripts/postrm-gconf
new file mode 100644
index 00000000..10a47fd7
--- /dev/null
+++ b/autoscripts/postrm-gconf
@@ -0,0 +1,7 @@
+if [ "$1" = purge ]; then
+ SCHEMA_FILES="#SCHEMAS#"
+ for SCHEMA in $SCHEMA_FILES; do
+ rm -f /etc/gconf/schemas/$SCHEMA
+ done
+ rmdir -p --ignore-fail-on-non-empty /etc/gconf/schemas
+fi
diff --git a/autoscripts/prerm-gconf b/autoscripts/prerm-gconf
index aaa803e7..cd755413 100644
--- a/autoscripts/prerm-gconf
+++ b/autoscripts/prerm-gconf
@@ -1,5 +1,5 @@
if [ "$1" = remove ] || [ "$1" = upgrade ]; then
- SCHEMA_LOCATION=/etc/gconf/schemas
+ SCHEMA_LOCATION=/usr/share/gconf/schemas
SCHEMA_FILES="#SCHEMAS#"
for SCHEMA in $SCHEMA_FILES; do
if [ -e $SCHEMA_LOCATION/$SCHEMA ]; then