瀏覽代碼

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 年之前
父節點
當前提交
c249251053
共有 1 個文件被更改,包括 3 次插入2 次删除
  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);
   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);
 }
 }