]> git.saurik.com Git - apt.git/commitdiff
apt-pkg/deb/debindexfile.cc: do not hardcode dpkg
authorMichael Vogt <mvo@debian.org>
Thu, 8 May 2014 12:39:51 +0000 (14:39 +0200)
committerMichael Vogt <mvo@debian.org>
Thu, 8 May 2014 12:39:51 +0000 (14:39 +0200)
apt-pkg/deb/debindexfile.cc

index 37efa05b02e09ffe5f8891a5851ee3fad26e3a94..7cb8e3b684cad61be7d36398d110641b74d13ff8 100644 (file)
@@ -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",