소스 검색

Re-indent GetCandidateVerNew() and make ConsiderFiles argument explicit

Gbp-Dch: ignore
Julian Andres Klode 11 년 전
부모
커밋
632f24768e
1개의 변경된 파일7개의 추가작업 그리고 7개의 파일을 삭제
  1. 7 7
      apt-pkg/policy.cc

+ 7 - 7
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;