The following commit has been merged in the master branch: commit c30a50a8a1c755935952e1dcb55f0179acbaddc8 Author: Guillem Jover <guil...@debian.org> Date: Sun Mar 18 15:18:27 2012 +0100
libdpkg: Add new pdb_parse_update flag This allows to distinguish when the code is parsing the update log files, which should behave differently than simple status file parsing. diff --git a/lib/dpkg/dbmodify.c b/lib/dpkg/dbmodify.c index 540d481..61cfcb3 100644 --- a/lib/dpkg/dbmodify.c +++ b/lib/dpkg/dbmodify.c @@ -88,7 +88,7 @@ static void cleanupdates(void) { if (cdn) { for (i=0; i<cdn; i++) { strcpy(updatefnrest, cdlist[i]->d_name); - parsedb(updatefnbuf, pdb_parse_status, NULL); + parsedb(updatefnbuf, pdb_parse_update, NULL); if (cstatus < msdbrw_write) free(cdlist[i]); } diff --git a/lib/dpkg/dpkg-db.h b/lib/dpkg/dpkg-db.h index 7e03df7..3a4a2bf 100644 --- a/lib/dpkg/dpkg-db.h +++ b/lib/dpkg/dpkg-db.h @@ -312,6 +312,7 @@ enum parsedbflags { /* Standard operations. */ pdb_parse_status = pdb_lax_parser | pdb_weakclassification, + pdb_parse_update = pdb_parse_status | pdb_deb_control, pdb_parse_available = pdb_recordavailable | pdb_rejectstatus | pdb_lax_parser, pdb_parse_binary = pdb_recordavailable | pdb_rejectstatus | pdb_deb_control, }; -- 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