The following commit has been merged in the master branch:
commit 85b9b00518419b23c209bb6567566b99f004241f
Author: Guillem Jover <[email protected]>
Date:   Mon Aug 10 18:05:55 2009 +0200

    Add new status-fd action when disappearing a package
    
    This will help front-ends like APT to keep better track of the actions
    done during a dpkg run.
    
    Closes: #537338

diff --git a/debian/changelog b/debian/changelog
index d4083bd..8e254ee 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -38,6 +38,7 @@ dpkg (1.15.5) UNRELEASED; urgency=low
     Thanks to Robert Millan.
   * Update the FSF postal address in the source code license headers by
     replacing it with a URL to the gnu.org page.
+  * Add a new status-fd action when disappearing a package. Closes: #537338
 
   [ Raphaƫl Hertzog ]
   * Add versioned dependency on base-files (>= 5.0.0) to dpkg-dev to ensure
diff --git a/man/dpkg.1 b/man/dpkg.1
index 4f86004..8bb7e47 100644
--- a/man/dpkg.1
+++ b/man/dpkg.1
@@ -542,7 +542,7 @@ User is being asked a conffile question.
 .BI "processing: " stage ": " package
 Sent just before a processing stage starts. \fIstage\fR is one of
 .BR upgrade ", " install " (both sent before unpacking),"
-.BR configure ", " trigproc  ", " remove  ", " purge .
+.BR configure ", " trigproc  ", " disappear ", " remove  ", " purge .
 .RE
 .TP
 \fB\-\-log=\fP\fIfilename\fP
diff --git a/src/processarc.c b/src/processarc.c
index ba9cdc5..02df23f 100644
--- a/src/processarc.c
+++ b/src/processarc.c
@@ -1040,6 +1040,7 @@ void process_archive(const char *filename) {
 
     printf(_("(Noting disappearance of %s, which has been completely 
replaced.)\n"),
            otherpkg->name);
+    log_action("disappear", otherpkg->name);
     debug(dbg_general, "process_archive disappearing %s",otherpkg->name);
     /* No, we're disappearing it.  This is the wrong time to go and
      * run maintainer scripts and things, as we can't back out.  But

-- 
dpkg's main repository


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

Reply via email to