On Thu, Mar 16, 2006 at 11:57:06AM +0100, Simon Stelling wrote:
> Pingveno wrote:
> >kde-base/* ~x86
> >
> >or, to apply it to a single version, this:
> >
> >=kde-base/*-3.5.1 ~x86
> >
> >Regular expressions would, of course, work too. They might be a little
> >bit of overkill, though.
> 
> Bug 57153, was RESOLVED LATER
> 
> http://bugs.gentoo.org/show_bug.cgi?id=57153

If anyone is bored, I'd be interested in an implementation of that for 
pkgcore (formerly bcportage, formerly saviour, formerly savior, 
formerly "the portage rewrite")...

Implementation of it would require modification to 
pkgcore/config/domain.py , namely changing the package_keywords 
splitter to use 

from pkgcore.restrictions import values, packages
from pkgcore.package.atom import VersionMatch
packages.BooleanRestriction(
   packages.PackageRestriction("category", values.StrExactmatch(cat)),
   Versionmatch(ver_component, rev_component)
)

instead of just passing the str to atom, and change the DictBased 
filter used for keywords adjustment.

Bit wordy, but it's actually minor to do- 20 lines or so, just not top 
priority for me (eg I'll get it someday down the line if I remember) :)

~harring

Attachment: pgpPclLxHWDYE.pgp
Description: PGP signature

Reply via email to