1 |
Diego 'Flameeyes' Pettenò wrote: |
2 |
> Tobias Scherbaum <dertobi123@g.o> writes: |
3 |
> |
4 |
> > But what about additional slot or version attributes like |
5 |
> > <link type="homepage" slot="1.4">http://java.sun.com/j2se/1.4.2/</link> |
6 |
> > (or a version attribute)? If slot and version aren't specified they'd be |
7 |
> > interpreted as wildcards. |
8 |
> |
9 |
> <link type="homepage" restrict="dev-java/sun-jdk:1.4"> |
10 |
> |
11 |
> The restrict attribute exists already and it's better to reuse the same |
12 |
> code, isn't it? |
13 |
|
14 |
In general yes, but in that case you're duplicating info like |
15 |
"dev-java/sun-jdk" unnecessarily. Reducing this to restrict="1.4" isn't |
16 |
easily readable as you'd need to know that restrict would specify a |
17 |
slot. If your plan is to make it easier to find useful information about |
18 |
a package (without using a fancy frontend, just reading the metadata.xml |
19 |
with $EDITOR) slot="1.4" (or a version attribute) might be a tad more |
20 |
human readable. |
21 |
|
22 |
Tobias |