]> git.saurik.com Git - apt.git/commitdiff
fix minimum pkgs option for dpkg --recursive usage
authorDavid Kalnischkies <david@kalnischkies.de>
Sat, 31 Dec 2016 17:23:25 +0000 (18:23 +0100)
committerDavid Kalnischkies <david@kalnischkies.de>
Sat, 31 Dec 2016 17:23:25 +0000 (18:23 +0100)
Interpreting a boolean as an int works just fine – it just hasn't the
intended result – it isn't a serious problem through as the disabling of
the usage of this dpkg calling style is just an "optimization"

apt-pkg/deb/dpkgpm.cc

index 81795641e92c38ebbca55b3d37571a4aa6f5db11..00943c1df0cc13fc250a6aaa723fc2fbed4f224d 100644 (file)
@@ -1508,7 +1508,7 @@ bool pkgDPkgPM::Go(APT::Progress::PackageManager *progress)
         dpkg_recursive_install = Cache.VS().CmpVersion("1.18.5", dpkgpkg.CurrentVer().VerStr()) <= 0;
    }
    // no point in doing this dance for a handful of packages only
-   unsigned int const dpkg_recursive_install_min = _config->FindB("dpkg::install::recursive::minimum", 5);
+   unsigned int const dpkg_recursive_install_min = _config->FindI("dpkg::install::recursive::minimum", 5);
    // FIXME: workaround for dpkg bug, see our ./test-bug-740843-versioned-up-down-breaks test
    bool const dpkg_recursive_install_numbered = _config->FindB("dpkg::install::recursive::numbered", true);