The following commit has been merged in the master branch:
commit 6562fd805b4ad16126c31a3765ffe70ef068163a
Author: Guillem Jover <guil...@debian.org>
Date:   Mon Feb 20 16:48:43 2012 +0100

    dpkg: Use pdb_parse_available in process_archive() on --record-avail
    
    When recording the available information from the binary package, we
    don't want it to possibly create a duplicate pkginfo entry with the
    same (but mixed) architecture, and having to cleanup the obsolete one.
    Instead we ignore the cross-grade slot finding logic, and just use the
    old available slot matching the architecture.

diff --git a/src/processarc.c b/src/processarc.c
index 5f40616..947bf17 100644
--- a/src/processarc.c
+++ b/src/processarc.c
@@ -445,7 +445,10 @@ void process_archive(const char *filename) {
 
   strcpy(cidirrest,CONTROLFILE);
 
-  parsedb_flags = pdb_parse_binary;
+  if (cipaction->arg_int == act_avail)
+    parsedb_flags = pdb_parse_available;
+  else
+    parsedb_flags = pdb_parse_binary;
   parsedb_flags |= pdb_ignorefiles;
   if (fc_badversion)
     parsedb_flags |= pdb_lax_version_parser;

-- 
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