diff options
author | Julian Andres Klode <jak@debian.org> | 2015-08-10 11:19:11 +0200 |
---|---|---|
committer | Julian Andres Klode <jak@debian.org> | 2015-08-10 11:19:11 +0200 |
commit | 5bfd306ee16fd1be012dd2cd01ae52ff4179176a (patch) | |
tree | 6fefd276ab3d2827542a24672302ba2d09609e67 /apt-pkg/versionmatch.h | |
parent | 9fb02ab02528ea45747318af26fae8a732cd2840 (diff) |
versionmatch: Extract version match checking out of Find()
Refactor version matching to allow us to check if a version matches
a pin. This will aid the per-version pinning implementation.
Diffstat (limited to 'apt-pkg/versionmatch.h')
-rw-r--r-- | apt-pkg/versionmatch.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/apt-pkg/versionmatch.h b/apt-pkg/versionmatch.h index bb950b9c7..156ad61cb 100644 --- a/apt-pkg/versionmatch.h +++ b/apt-pkg/versionmatch.h @@ -74,6 +74,7 @@ class pkgVersionMatch static bool ExpressionMatches(const std::string& pattern, const char *string); bool FileMatch(pkgCache::PkgFileIterator File); pkgCache::VerIterator Find(pkgCache::PkgIterator Pkg); + bool VersionMatches(pkgCache::VerIterator Ver); pkgVersionMatch(std::string Data,MatchType Type); }; |