From f9a52839c6ee980150ecfd8dbf26cef1e7dc0122 Mon Sep 17 00:00:00 2001
From: Joey Hess <joey@gnu.kitenet.net>
Date: Fri, 29 May 2009 10:53:58 -0400
Subject: [PATCH] dh_gconf: Remove postrm fragment that handled schema
 migration from /etc to /usr. Closes: #531035

---
 autoscripts/postrm-gconf | 10 ----------
 debian/changelog         |  2 ++
 dh_gconf                 |  1 -
 3 files changed, 2 insertions(+), 11 deletions(-)
 delete mode 100644 autoscripts/postrm-gconf

diff --git a/autoscripts/postrm-gconf b/autoscripts/postrm-gconf
deleted file mode 100644
index c05eb43..0000000
--- a/autoscripts/postrm-gconf
+++ /dev/null
@@ -1,10 +0,0 @@
-if [ "$1" = purge ]; then
-	OLD_DIR=/etc/gconf/schemas
-	SCHEMA_FILES="#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
diff --git a/debian/changelog b/debian/changelog
index c59afe7..f057c5a 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -7,6 +7,8 @@ debhelper (7.2.15) UNRELEASED; urgency=low
     to special case the .svgz extention when compressing svg.
     Closes: #530253
   * dh_scrollkeeper: Now a deprecated no-op. Closes: #530806
+  * dh_gconf: Remove postrm fragment that handled schema migration
+    from /etc to /usr. Closes: #531035
 
  -- Joey Hess <joeyh@debian.org>  Mon, 18 May 2009 15:42:04 -0400
 
diff --git a/dh_gconf b/dh_gconf
index 8c30de7..8903566 100755
--- a/dh_gconf
+++ b/dh_gconf
@@ -67,7 +67,6 @@ foreach my $package (@{$dh{DOPACKAGES}}) {
 		doit("mkdir","-p","$tmp/usr/share/gconf/mandatory");
 		doit("install","-p","-m644",$mandatory,"$tmp/usr/share/gconf/mandatory/${priority}_$package");
 		autoscript($package,"postinst","postinst-gconf-defaults","s%#OPT#%--mandatory%");
-		autoscript($package,"postrm","postrm-gconf-defaults","s%#OPT#%--mandatory%");
 		addsubstvar($package, "misc:Depends", "gconf2 (>= 2.24.0-5)");
 		$gconf_dep = 1;
 	}
-- 
2.39.5