The following commit has been merged in the master branch:
commit c24925105318dfa5a8ce19b54be80be69876094d
Author: Guillem Jover <[email protected]>
Date: Thu Jul 22 18:27:16 2010 +0200
dpkg-deb: Parse control file into available structure
This unconfuses the code to make it clear we are not dealing with
installed package information. It's also needed as part of the
infrastructure changes for multiarch support.
diff --git a/dpkg-deb/info.c b/dpkg-deb/info.c
index a2b2790..d56d6f9 100644
--- a/dpkg-deb/info.c
+++ b/dpkg-deb/info.c
@@ -258,8 +258,9 @@ void do_showinfo(const char* const* argv) {
info_prepare(&argv,&debar,&directory,1);
- parsedb(CONTROLFILE, pdb_ignorefiles, &pkg, NULL, NULL);
- pkg_format_show(fmt, pkg, &pkg->installed);
+ parsedb(CONTROLFILE, pdb_recordavailable | pdb_rejectstatus |
pdb_ignorefiles,
+ &pkg, NULL, NULL);
+ pkg_format_show(fmt, pkg, &pkg->available);
}
--
dpkg's main repository
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]