diff options
author | Julian Andres Klode <jak@debian.org> | 2015-08-12 13:07:56 +0200 |
---|---|---|
committer | Julian Andres Klode <jak@debian.org> | 2015-08-12 13:07:56 +0200 |
commit | 10b39ae62db1f0d15a208a286cc86aff06c2fb69 (patch) | |
tree | 7ff14c555a09bc183cb413dc3226ddcf28b0a95f /apt-pkg/policy.h | |
parent | 4ef2f35c35b5519040b4efebf2cca4527feacd29 (diff) |
Add a parameter ConsiderFiles to GetPriority(VerIterator)
This allows us to exclude files from being considered for the
priority, so it will return only specific-version matches.
Diffstat (limited to 'apt-pkg/policy.h')
-rw-r--r-- | apt-pkg/policy.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apt-pkg/policy.h b/apt-pkg/policy.h index b3e1ec6b1..5be6657e9 100644 --- a/apt-pkg/policy.h +++ b/apt-pkg/policy.h @@ -80,7 +80,7 @@ class pkgPolicy : public pkgDepCache::Policy // Things for the cache interface. virtual pkgCache::VerIterator GetCandidateVer(pkgCache::PkgIterator const &Pkg) APT_OVERRIDE; virtual signed short GetPriority(pkgCache::PkgIterator const &Pkg) APT_OVERRIDE; - virtual signed short GetPriority(pkgCache::VerIterator const &Pkg); + virtual signed short GetPriority(pkgCache::VerIterator const &Pkg, bool ConsiderFiles = true); virtual signed short GetPriority(pkgCache::PkgFileIterator const &File) APT_OVERRIDE; bool InitDefaults(); |