]> git.saurik.com Git - apt.git/commit
cacheset: Prefer the depcache over the policy again
authorJulian Andres Klode <jak@debian.org>
Thu, 27 Aug 2015 11:10:02 +0000 (13:10 +0200)
committerJulian Andres Klode <jak@debian.org>
Thu, 27 Aug 2015 11:13:13 +0000 (13:13 +0200)
commitb6192267c23ffda1b9c8328537a5f2c83e176c26
treea1534cd8e6a05183451d38df523639852d5a9ff7
parent1476c59e4b93239176a2d4874ec950b489c924b2
cacheset: Prefer the depcache over the policy again

By preferring the policy over the depcache, we ignore any changes
we made in the depcache, which makes it impossible for code to
change the candidate used here.

This basically reverts commit 2fbfb111312257fa5fc29b0c2ed386fb712f960e:

 prefer the Policy if it is built instead of the DepCache and
 if DepCache is not available as fallback built the Policy

But it also cleans the code up a bit, by removing one level
of nesting.
apt-pkg/cacheset.cc