]> git.saurik.com Git - apt.git/commitdiff
Also support regular expressions and glob() patterns in "Pin: version".
authorJulian Andres Klode <jak@debian.org>
Mon, 28 Jun 2010 15:29:11 +0000 (17:29 +0200)
committerJulian Andres Klode <jak@debian.org>
Mon, 28 Jun 2010 15:29:11 +0000 (17:29 +0200)
apt-pkg/versionmatch.cc

index 72c9bff2d4ac509608a88997addc09a565c3e139..2abb73e8d2f0f7bbd14bd64a5089cb3b23cb5c86 100644 (file)
@@ -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;
       }