1 |
On Thu, Mar 16, 2006 at 11:57:06AM +0100, Simon Stelling wrote: |
2 |
> Pingveno wrote: |
3 |
> >kde-base/* ~x86 |
4 |
> > |
5 |
> >or, to apply it to a single version, this: |
6 |
> > |
7 |
> >=kde-base/*-3.5.1 ~x86 |
8 |
> > |
9 |
> >Regular expressions would, of course, work too. They might be a little |
10 |
> >bit of overkill, though. |
11 |
> |
12 |
> Bug 57153, was RESOLVED LATER |
13 |
> |
14 |
> http://bugs.gentoo.org/show_bug.cgi?id=57153 |
15 |
|
16 |
If anyone is bored, I'd be interested in an implementation of that for |
17 |
pkgcore (formerly bcportage, formerly saviour, formerly savior, |
18 |
formerly "the portage rewrite")... |
19 |
|
20 |
Implementation of it would require modification to |
21 |
pkgcore/config/domain.py , namely changing the package_keywords |
22 |
splitter to use |
23 |
|
24 |
from pkgcore.restrictions import values, packages |
25 |
from pkgcore.package.atom import VersionMatch |
26 |
packages.BooleanRestriction( |
27 |
packages.PackageRestriction("category", values.StrExactmatch(cat)), |
28 |
Versionmatch(ver_component, rev_component) |
29 |
) |
30 |
|
31 |
instead of just passing the str to atom, and change the DictBased |
32 |
filter used for keywords adjustment. |
33 |
|
34 |
Bit wordy, but it's actually minor to do- 20 lines or so, just not top |
35 |
priority for me (eg I'll get it someday down the line if I remember) :) |
36 |
|
37 |
~harring |