diff options
author | Guillem Jover <guillem@debian.org> | 2009-08-10 18:05:55 +0200 |
---|---|---|
committer | Guillem Jover <guillem@debian.org> | 2009-11-12 21:40:37 +0100 |
commit | 85b9b00518419b23c209bb6567566b99f004241f (patch) | |
tree | a96e5ae433328e22fea609f01b0b9cbb59dd7234 | |
parent | 6ad383f47121cc20958eead2c3e7a1e9047515d1 (diff) | |
download | dpkg-85b9b00518419b23c209bb6567566b99f004241f.tar.gz |
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
-rw-r--r-- | debian/changelog | 1 | ||||
-rw-r--r-- | man/dpkg.1 | 2 | ||||
-rw-r--r-- | src/processarc.c | 1 |
3 files changed, 3 insertions, 1 deletions
diff --git a/debian/changelog b/debian/changelog index d4083bd54..8e254ee88 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 4f8600460..8bb7e477a 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 ba9cdc597..02df23f00 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 |