inline pkgVersioningSystem &VS() {return *Cache->VS;};
// Policy implementation
- APT_DEPRECATED inline VerIterator GetCandidateVer(PkgIterator const &Pkg) {return /* GetCandidateVersion(Pkg); but for API compat: */ LocalPolicy->GetCandidateVer(Pkg);};
+ APT_DEPRECATED_MSG("Confusingly named method which returns the candidate as chosen by policy (NOT as chosen via .SetCandidateVersion!). You probably want to use .GetCandidateVersion instead.") inline VerIterator GetCandidateVer(PkgIterator const &Pkg) {return /* GetCandidateVersion(Pkg); but for API compat: */ LocalPolicy->GetCandidateVer(Pkg);};
inline bool IsImportantDep(DepIterator Dep) const {return LocalPolicy->IsImportantDep(Dep);};
inline Policy &GetPolicy() {return *LocalPolicy;};
*
* The version returned is the version previously set explicitly via
* SetCandidate* methods like #SetCandidateVersion or if there wasn't one
- * set the version as choosen via #Policy.
+ * set the version as chosen via #Policy.
*
* @param Pkg is the package to return the candidate for
*/