]> git.saurik.com Git - apt.git/commitdiff
Re-indent GetCandidateVerNew() and make ConsiderFiles argument explicit
authorJulian Andres Klode <jak@debian.org>
Thu, 20 Aug 2015 09:56:09 +0000 (11:56 +0200)
committerJulian Andres Klode <jak@debian.org>
Thu, 20 Aug 2015 12:54:03 +0000 (14:54 +0200)
Gbp-Dch: ignore

apt-pkg/policy.cc

index 91ad1d5bf7d5d1e9237e6dd96599b01e45663ac9..a1e903178a65ea831df6aae9d3901be4958765ec 100644 (file)
@@ -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;