summaryrefslogtreecommitdiff
path: root/apt-pkg/versionmatch.cc
diff options
context:
space:
mode:
authorJulian Andres Klode <jak@debian.org>2010-06-28 17:29:11 +0200
committerJulian Andres Klode <jak@debian.org>2010-06-28 17:29:11 +0200
commit05002864535069dbc35fd1c713ab072a5b6df65f (patch)
treee1d81c2bad797c9c3d3002e747366d8ff5dc4a04 /apt-pkg/versionmatch.cc
parentae4a4f91e90fb09a8de1699f18f3b28d095c4d73 (diff)
Also support regular expressions and glob() patterns in "Pin: version".
Diffstat (limited to 'apt-pkg/versionmatch.cc')
-rw-r--r--apt-pkg/versionmatch.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/apt-pkg/versionmatch.cc b/apt-pkg/versionmatch.cc
index 72c9bff2d..2abb73e8d 100644
--- a/apt-pkg/versionmatch.cc
+++ b/apt-pkg/versionmatch.cc
@@ -155,6 +155,8 @@ pkgCache::VerIterator pkgVersionMatch::Find(pkgCache::PkgIterator Pkg)
{
if (MatchVer(Ver.VerStr(),VerStr,VerPrefixMatch) == true)
return Ver;
+ if (ExpressionMatches(VerStr, Ver.VerStr()) == true)
+ return Ver;
continue;
}