1 |
Ciaran McCreesh wrote: |
2 |
> Luca Barbato <lu_zero@g.o> wrote: |
3 |
>> Ciaran McCreesh wrote: |
4 |
>> > Paludis allows users to do some-cat/foo[>=4.0&<4-3] and |
5 |
>> > some-cat/foo[=4.1|=4.2|=4.3] . The syntax isn't particularly pretty, |
6 |
>> > but it's cleaner than requiring duplication of the cat/pkg. Combined |
7 |
>> > with :slot deps it should give you everything you need. |
8 |
>> |
9 |
>> Seems not bad, do you have plans to refine it before proposing it for |
10 |
>> the pms? |
11 |
> |
12 |
> Well, I'm happy with it like that... |
13 |
> |
14 |
but as you said, it ain't pretty: what about simply replacing [] with ()? |
15 |
&& to match || in portage and logical AND in C etc. seems wise too. |
16 |
Allow both if you *have* to maintain backwards-compatibility, but it makes |
17 |
it more like portage syntax, which folks are used to: |
18 |
some-cat/foo(>=4.0&&<4.3) seems clean, for this example. |
19 |
|
20 |
To my mind, | seems like a good second-level operator, so one could have: |
21 |
cat-foo/bar(~3.6||~3.7|>=4.0&&<4.3|>=5.1) while still using the operators |
22 |
everyone is used to for most things. |
23 |
|
24 |
(& makes no sense in that context, of course.) |
25 |
|
26 |
|
27 |
-- |
28 |
gentoo-dev@g.o mailing list |