The following commit has been merged in the iwj branch:
commit a6d1a53be24142e14f92b0111120e74c7e7520ff
Author: Ian Jackson <[EMAIL PROTECTED]>
Date:   Wed Oct 31 15:37:48 2007 +0000

    * Run prerms during removal even if the package is in a trig* state.

diff --git a/debian/changelog b/debian/changelog
index 54a7869..f99e415 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -69,6 +69,7 @@ dpkg (1.14.8) UNRELEASED; urgency=low
   [ Ian Jackson ]
   * Treat successful calls to the postinst as always making the package
     installed.  Reverts Brian Carlson's patch from  #432893.
+  * Run prerms during removal even if the package is in a trig* state.
   * Do not pointlessly clear reinstreq flag on postinst abort-remove.
     cu_prermremove is only be called via a push_cleanup in remove.c which
     is only executed if the package is at least halfconfigured so
diff --git a/src/remove.c b/src/remove.c
index f6632f8..e96c5d0 100644
--- a/src/remove.c
+++ b/src/remove.c
@@ -167,7 +167,7 @@ void deferred_remove(struct pkginfo *pkg) {
   printf(_("Removing %s ...\n"),pkg->name);
   log_action("remove", pkg);
   trig_activate_packageprocessing(pkg);
-  if (pkg->status == stat_halfconfigured || pkg->status == stat_installed) {
+  if (pkg->status >= stat_halfconfigured) {
     pkg->status= stat_halfconfigured;
     modstatdb_note(pkg);
     push_cleanup(cu_prermremove,~ehflag_normaltidy, 0,0, 1,(void*)pkg);

-- 
dpkg's main repository


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to