On Di, 2010-06-29 at 00:55 +0200, Julian Andres Klode wrote: > Package: libcupt-perl > Version: 1.5.13 > Severity: wishlist > > I just want to let you know that the next version > of APT handles regular expressions and matches using > fnmatch() anywhere in the Pin: field where a string > comparison was done previously. > > A regular expression is surrounded by two forward > slashes, and a fnmatch() expression has no special > things, it replaces the old string match directly. > > This allows stuff like: > > Pin: release o=/deb.*/ > Pin: version *5* > Pin: origin local* > Pin: origin /^local.*/ > Pin: origin /^$/ (equal to origin "") > > Regular expressions are not anchored, meaning they > match anywhere in the string. APT currently uses > POSIX Extended Regular Expressions, for cupt, I > think perl regex makes more sense. > > You can also extend the concept to the Package: > and Sources: fields. APT2 can do this, and it > looks like: > Package: /regex/, fnmatch-pattern > > I did not find an easy way to add this Package/Source > matching to APT at the moment, but it may come. It's in APT 0.8.14 now, and documented in the manual page. If you want me to implement it, tell me where to look (and yes, I always need to push my ideas to as many packages as possible). -- Julian Andres Klode - Debian Developer, Ubuntu Member
See http://wiki.debian.org/JulianAndresKlode and http://jak-linux.org/. -- To UNSUBSCRIBE, email to debian-bugs-dist-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org