diff options
author | joey <joey> | 2004-07-12 15:59:03 +0000 |
---|---|---|
committer | joey <joey> | 2004-07-12 15:59:03 +0000 |
commit | 06b40b29a6aa2aaf47c96de4abd5504be1ff40a9 (patch) | |
tree | 58ad4357c1e3716a8585b2d73fe56a364a3f8054 /autoscripts | |
parent | 6b56512d576510538196f3f048b1632d95a34c7f (diff) | |
download | debhelper-06b40b29a6aa2aaf47c96de4abd5504be1ff40a9.tar.gz |
r1703: * dh_cgonf: deal with problems if /etc/gconf/schemas doesn't exist any more4.2.15
(#258901)
Diffstat (limited to 'autoscripts')
-rw-r--r-- | autoscripts/postrm-gconf | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/autoscripts/postrm-gconf b/autoscripts/postrm-gconf index 10a47fd7..c05eb43d 100644 --- a/autoscripts/postrm-gconf +++ b/autoscripts/postrm-gconf @@ -1,7 +1,10 @@ if [ "$1" = purge ]; then + OLD_DIR=/etc/gconf/schemas 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 + if [ -d $OLD_DIR ]; then + for SCHEMA in $SCHEMA_FILES; do + rm -f $OLD_DIR/$SCHEMA + done + rmdir -p --ignore-fail-on-non-empty $OLD_DIR + fi fi |