diff options
author | Julian Andres Klode <jak@debian.org> | 2010-06-28 17:29:11 +0200 |
---|---|---|
committer | Julian Andres Klode <jak@debian.org> | 2010-06-28 17:29:11 +0200 |
commit | 05002864535069dbc35fd1c713ab072a5b6df65f (patch) | |
tree | e1d81c2bad797c9c3d3002e747366d8ff5dc4a04 | |
parent | ae4a4f91e90fb09a8de1699f18f3b28d095c4d73 (diff) | |
download | apt-05002864535069dbc35fd1c713ab072a5b6df65f.tar.gz |
Also support regular expressions and glob() patterns in "Pin: version".
-rw-r--r-- | apt-pkg/versionmatch.cc | 2 |
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; } |