[Dbconfig-common-changes] dbconfig-common/dpkg postrm,1.3,1.4

seanius at haydn.debian.org seanius at haydn.debian.org
Tue Dec 6 22:29:32 CET 2005


Update of /cvsroot/dbconfig-common/dbconfig-common/dpkg
In directory haydn:/org/alioth.debian.org/chroot/home/users/seanius/tmp/cvs-serv2368/dpkg

Modified Files:
	postrm 
Log Message:
unregister debconf questions for a package at purge time


Index: postrm
===================================================================
RCS file: /cvsroot/dbconfig-common/dbconfig-common/dpkg/postrm,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- postrm	14 Mar 2005 01:42:41 -0000	1.3
+++ postrm	6 Dec 2005 21:29:26 -0000	1.4
@@ -6,7 +6,12 @@
 	dbc_config $@
 
 	if [ "$dbc_command" = "purge" ]; then
+		# remove the dbc configuration file
 		rm -f /etc/dbconfig-common/$dbc_package.conf || true
 		ucf -p "/etc/dbconfig-common/$dbc_package.conf" || true
+		# forget everything we ever new related to debconf+dbc
+		for t in $dbc_register_templates; do
+			db_unregister $dbc_package/$t || true
+		done
 	fi
 }




More information about the Dbconfig-common-changes mailing list