summaryrefslogtreecommitdiff
path: root/apt-pkg/policy.h
diff options
context:
space:
mode:
authorJulian Andres Klode <jak@debian.org>2015-08-10 11:00:37 +0200
committerJulian Andres Klode <jak@debian.org>2015-08-10 11:00:37 +0200
commit9fb02ab02528ea45747318af26fae8a732cd2840 (patch)
tree34e39ba7a3016542ea0684482f453712b242c3db /apt-pkg/policy.h
parentebda4f51f6707e5a6550f92d9407eab855039060 (diff)
pkgPolicy: Introduce storage and helpers for per-version pins
Per-version pins should lead to more predictable results with /etc/apt/preferences uses like pinning one version with -1.
Diffstat (limited to 'apt-pkg/policy.h')
-rw-r--r--apt-pkg/policy.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/apt-pkg/policy.h b/apt-pkg/policy.h
index c4b1cbadd..9deeb9d0e 100644
--- a/apt-pkg/policy.h
+++ b/apt-pkg/policy.h
@@ -63,6 +63,7 @@ class pkgPolicy : public pkgDepCache::Policy
};
Pin *Pins;
+ Pin *VerPins;
signed short *PFPriority;
std::vector<Pin> Defaults;
std::vector<PkgPin> Unmatched;
@@ -79,6 +80,7 @@ class pkgPolicy : public pkgDepCache::Policy
// Things for the cache interface.
virtual pkgCache::VerIterator GetCandidateVer(pkgCache::PkgIterator const &Pkg);
virtual signed short GetPriority(pkgCache::PkgIterator const &Pkg);
+ virtual signed short GetPriority(pkgCache::VerIterator const &Pkg);
virtual signed short GetPriority(pkgCache::PkgFileIterator const &File);
bool InitDefaults();