소스 검색

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

Michael Vogt 12 년 전
부모
커밋
0cf3962923
1개의 변경된 파일2개의 추가작업 그리고 1개의 파일을 삭제
  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",