diff options
author | Michael Vogt <mvo@debian.org> | 2014-05-08 14:39:51 +0200 |
---|---|---|
committer | Michael Vogt <mvo@debian.org> | 2014-05-08 14:39:51 +0200 |
commit | 0cf3962923bd26b11d738b0b403d92be60123bd1 (patch) | |
tree | ce879e9e515655d8a4f3c2bd434a3345e4a5c758 /apt-pkg/deb | |
parent | 722c387941f8d313fe18b61828fb82a0bbca5dad (diff) |
apt-pkg/deb/debindexfile.cc: do not hardcode dpkg
Diffstat (limited to 'apt-pkg/deb')
-rw-r--r-- | apt-pkg/deb/debindexfile.cc | 3 |
1 files changed, 2 insertions, 1 deletions
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", |