diff options
author | Julian Andres Klode <jak@debian.org> | 2015-08-15 11:52:50 +0200 |
---|---|---|
committer | Julian Andres Klode <jak@debian.org> | 2015-08-15 11:54:08 +0200 |
commit | a0a6695515f8d8d7db3f52751d4d14f8266c286c (patch) | |
tree | 5d104d38a5af7abf75ebe1e5b4dedbd66859598d /apt-pkg/policy.cc | |
parent | 91e42c2b4e9a6e8c7c1db29e9d1606741d251ca0 (diff) |
Add GetPriority(VerIterator) to pkgDepCache::Policy
Also unify the case of considerFiles and ConsiderFiles to be
ConsiderFiles in all cases.
Gbp-Dch: ignore
Diffstat (limited to 'apt-pkg/policy.cc')
-rw-r--r-- | apt-pkg/policy.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apt-pkg/policy.cc b/apt-pkg/policy.cc index 4711372bc..badf702ca 100644 --- a/apt-pkg/policy.cc +++ b/apt-pkg/policy.cc @@ -368,11 +368,11 @@ APT_PURE signed short pkgPolicy::GetPriority(pkgCache::PkgIterator const &Pkg) return Pins[Pkg->ID].Priority; return 0; } -APT_PURE signed short pkgPolicy::GetPriority(pkgCache::VerIterator const &Ver, bool considerFiles) +APT_PURE signed short pkgPolicy::GetPriority(pkgCache::VerIterator const &Ver, bool ConsiderFiles) { if (VerPins[Ver->ID].Type != pkgVersionMatch::None) return VerPins[Ver->ID].Priority; - if (!considerFiles) + if (!ConsiderFiles) return 0; int priority = std::numeric_limits<int>::min(); |