소스 검색

Simply ignore cruft in the status files, do not treat it as prio 0

This was broken in case all other sources were < 0.
Julian Andres Klode 11 년 전
부모
커밋
1d203ce78e
1개의 변경된 파일1개의 추가작업 그리고 2개의 파일을 삭제
  1. 1 2
      apt-pkg/policy.cc

+ 1 - 2
apt-pkg/policy.cc

@@ -383,8 +383,7 @@ APT_PURE signed short pkgPolicy::GetPriority(pkgCache::VerIterator const &Ver)
          out bogus entries that may be due to config-file states, or
          out bogus entries that may be due to config-file states, or
          other. */
          other. */
       if (file.File().Flagged(pkgCache::Flag::NotSource) && Ver.ParentPkg().CurrentVer() != Ver) {
       if (file.File().Flagged(pkgCache::Flag::NotSource) && Ver.ParentPkg().CurrentVer() != Ver) {
-	 if (priority < 0)
-	       priority = 0;
+	 // Ignore
       } else if (GetPriority(file.File()) > priority) {
       } else if (GetPriority(file.File()) > priority) {
 	 priority = GetPriority(file.File());
 	 priority = GetPriority(file.File());
       }
       }