From 9fb02ab02528ea45747318af26fae8a732cd2840 Mon Sep 17 00:00:00 2001 From: Julian Andres Klode Date: Mon, 10 Aug 2015 11:00:37 +0200 Subject: 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. --- apt-pkg/policy.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'apt-pkg/policy.h') 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 Defaults; std::vector 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(); -- cgit v1.2.3-70-g09d2