From 632f24768e4fdcebe4e26e02471beb8f583e073b Mon Sep 17 00:00:00 2001 From: Julian Andres Klode Date: Thu, 20 Aug 2015 11:56:09 +0200 Subject: [PATCH] Re-indent GetCandidateVerNew() and make ConsiderFiles argument explicit Gbp-Dch: ignore --- apt-pkg/policy.cc | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/apt-pkg/policy.cc b/apt-pkg/policy.cc index 91ad1d5bf..a1e903178 100644 --- a/apt-pkg/policy.cc +++ b/apt-pkg/policy.cc @@ -236,15 +236,15 @@ pkgCache::VerIterator pkgPolicy::GetCandidateVerNew(pkgCache::PkgIterator const pkgVersioningSystem *vs = Cache->VS; for (pkgCache::VerIterator ver = Pkg.VersionList(); ver.end() == false; ver++) { - int priority = GetPriority(ver); + int priority = GetPriority(ver, true); - if (priority == 0 || priority <= candPriority) - continue; + if (priority == 0 || priority <= candPriority) + continue; - // TODO: Maybe optimize to not compare versions - if (!cur.end() && priority < 1000 - && (vs->CmpVersion(ver.VerStr(), cur.VerStr()) < 0)) - continue; + // TODO: Maybe optimize to not compare versions + if (!cur.end() && priority < 1000 + && (vs->CmpVersion(ver.VerStr(), cur.VerStr()) < 0)) + continue; candPriority = priority; cand = ver; -- 2.45.2