diff options
-rw-r--r-- | apt-pkg/algorithms.cc | 3 | ||||
-rw-r--r-- | doc/examples/configure-index | 1 |
2 files changed, 3 insertions, 1 deletions
diff --git a/apt-pkg/algorithms.cc b/apt-pkg/algorithms.cc index c12924c5f..cba772d41 100644 --- a/apt-pkg/algorithms.cc +++ b/apt-pkg/algorithms.cc @@ -793,8 +793,9 @@ bool pkgProblemResolver::ResolveInternal(bool const BrokenFix) changing a breaks c) */ bool Change = true; bool const TryFixByInstall = _config->FindB("pkgProblemResolver::FixByInstall", true); + int const MaxCounter = _config->FindI("pkgProblemResolver::MaxCounter", 20); std::vector<PackageKill> KillList; - for (int Counter = 0; Counter != 10 && Change == true; Counter++) + for (int Counter = 0; Counter < MaxCounter && Change; ++Counter) { Change = false; for (pkgCache::Package **K = PList.get(); K != PEnd; K++) diff --git a/doc/examples/configure-index b/doc/examples/configure-index index 497483ccc..47715a9e1 100644 --- a/doc/examples/configure-index +++ b/doc/examples/configure-index @@ -586,6 +586,7 @@ pkgProblemResolver::Scores AddEssential "<INT>"; }; pkgProblemResolver::FixByInstall "<BOOL>"; +pkgProblemResolver::MaxCounter "<INT>"; APT::FTPArchive::release { |