From 0cf3962923bd26b11d738b0b403d92be60123bd1 Mon Sep 17 00:00:00 2001 From: Michael Vogt Date: Thu, 8 May 2014 14:39:51 +0200 Subject: apt-pkg/deb/debindexfile.cc: do not hardcode dpkg --- apt-pkg/deb/debindexfile.cc | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'apt-pkg') 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", -- cgit v1.2.3