Ver código fonte

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.
Guillem Jover 16 anos atrás
pai
commit
c249251053
1 arquivos alterados com 3 adições e 2 exclusões
  1. 3 2
      dpkg-deb/info.c

+ 3 - 2
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);
 }