The following commit has been merged in the master branch:
commit e67e071e5836c7bd79bb5a1561ecda760f09a01f
Author: Guillem Jover <guil...@debian.org>
Date:   Sun May 15 17:38:18 2011 +0200

    dpkg: On purge remove the conffiles from the file list file
    
    This makes sure the files list is correct after the conffiles have been
    removed from disk and the status db has been updated.

diff --git a/src/remove.c b/src/remove.c
index a3a8d2c..f0a98bd 100644
--- a/src/remove.c
+++ b/src/remove.c
@@ -305,6 +305,9 @@ static void removal_bulk_remove_leftover_dirs(struct 
pkginfo *pkg) {
   static struct varbuf fnvb;
   struct stat stab;
 
+  /* We may have modified this previously. */
+  ensure_packagefiles_available(pkg);
+
   modstatdb_note(pkg);
   push_checkpoint(~ehflag_bombout, ehflag_normaltidy);
 
@@ -498,6 +501,9 @@ static void removal_bulk_remove_configfiles(struct pkginfo 
*pkg) {
       pop_cleanup(ehflag_normaltidy); /* closedir */
     }
 
+    /* Remove the conffiles from the file list file. */
+    write_filelist_except(pkg, pkg->clientdata->files, fnnf_old_conff);
+
     pkg->installed.conffiles = NULL;
     modstatdb_note(pkg);
 

-- 
dpkg's main repository


-- 
To UNSUBSCRIBE, email to debian-dpkg-cvs-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to