diff options
author | Julian Andres Klode <jak@debian.org> | 2015-08-11 10:21:29 +0200 |
---|---|---|
committer | Julian Andres Klode <jak@debian.org> | 2015-08-11 13:59:15 +0200 |
commit | 1d203ce78e6f80792e8c1f99701ff1b1daca534c (patch) | |
tree | b2a26e50c2499ed6329e781f2756ac8fdafb5953 | |
parent | 9b7d159f7c323a16b26c365d7fa1e2886f5ef278 (diff) |
Simply ignore cruft in the status files, do not treat it as prio 0
This was broken in case all other sources were < 0.
-rw-r--r-- | apt-pkg/policy.cc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/apt-pkg/policy.cc b/apt-pkg/policy.cc index ea6621e13..c12d8699b 100644 --- a/apt-pkg/policy.cc +++ b/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 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()); } |