From: Michael Vogt Date: Thu, 8 May 2014 12:39:51 +0000 (+0200) Subject: apt-pkg/deb/debindexfile.cc: do not hardcode dpkg X-Git-Tag: 1.1.exp1~22 X-Git-Url: https://git.saurik.com/apt.git/commitdiff_plain/0cf3962923bd26b11d738b0b403d92be60123bd1?hp=-c apt-pkg/deb/debindexfile.cc: do not hardcode dpkg --- 0cf3962923bd26b11d738b0b403d92be60123bd1 diff --git a/apt-pkg/deb/debindexfile.cc b/apt-pkg/deb/debindexfile.cc index 37efa05b0..7cb8e3b68 100644 --- a/apt-pkg/deb/debindexfile.cc +++ b/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",