summaryrefslogtreecommitdiff
path: root/apt-pkg/versionmatch.h
diff options
context:
space:
mode:
authorJulian Andres Klode <jak@debian.org>2015-08-10 11:19:11 +0200
committerJulian Andres Klode <jak@debian.org>2015-08-10 11:19:11 +0200
commit5bfd306ee16fd1be012dd2cd01ae52ff4179176a (patch)
tree6fefd276ab3d2827542a24672302ba2d09609e67 /apt-pkg/versionmatch.h
parent9fb02ab02528ea45747318af26fae8a732cd2840 (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.h1
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);
};