]> git.saurik.com Git - apt.git/commitdiff
Simply ignore cruft in the status files, do not treat it as prio 0
authorJulian Andres Klode <jak@debian.org>
Tue, 11 Aug 2015 08:21:29 +0000 (10:21 +0200)
committerJulian Andres Klode <jak@debian.org>
Tue, 11 Aug 2015 11:59:15 +0000 (13:59 +0200)
This was broken in case all other sources were < 0.

apt-pkg/policy.cc

index ea6621e13b8d80338df3557839d572b1b0695e88..c12d8699bd48468eb3216bdf6bdba74cc54009a9 100644 (file)
@@ -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
          other. */
       if (file.File().Flagged(pkgCache::Flag::NotSource) && Ver.ParentPkg().CurrentVer() != Ver) {
-        if (priority < 0)
-              priority = 0;
+        // Ignore
       } else if (GetPriority(file.File()) > priority) {
         priority = GetPriority(file.File());
       }