summaryrefslogtreecommitdiff
path: root/apt-pkg/policy.cc
diff options
context:
space:
mode:
Diffstat (limited to 'apt-pkg/policy.cc')
-rw-r--r--apt-pkg/policy.cc3
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());
}