Przeglądaj źródła

apt-pkg/deb/debindexfile.cc: do not hardcode dpkg

Michael Vogt 12 lat temu
rodzic
commit
0cf3962923
1 zmienionych plików z 2 dodań i 1 usunięć
  1. 2 1
      apt-pkg/deb/debindexfile.cc

+ 2 - 1
apt-pkg/deb/debindexfile.cc

@@ -692,7 +692,8 @@ bool debDebPkgFileIndex::Merge(pkgCacheGenerator& Gen, OpProgress* Prog) const
 
    // get the control data out of the deb file vid dpkg -I
    // ... can I haz libdpkg?
-   const char *Args[5] = {"/usr/bin/dpkg",
+   std::string dpkg = _config->Find("Dir::Bin::dpkg","dpkg");
+   const char *Args[5] = {dpkg.c_str(),
                           "-I",
                           DebFile.c_str(),
                           "control",