1 |
On 27 June 2011 03:12, Maciej Mrozowski <reavertm@×××××.com> wrote: |
2 |
> |
3 |
> I see major disadvantage with this approach. It's painful to maintain. |
4 |
> Imagine hundreds of different tags, with each package having at least two |
5 |
> tags. You certainly don't expect anyone to be able to maintain that. |
6 |
> Also those files cannot be generated since there needs to be some original |
7 |
> source of tags information to generate such 'sets' from. |
8 |
|
9 |
This problem is in my mind somewhat twofold. |
10 |
|
11 |
There are 2 ways to approach applying a tag. |
12 |
|
13 |
1. Opening each package and setting its tags ( package -> tags ) |
14 |
2. Opening a "tag" file and setting its packages ( tag -> package ) |
15 |
|
16 |
And both approaches are very handy. |
17 |
|
18 |
1. Is useful because it makes it easy to apply a singular tag surgically. |
19 |
2. Is useful because it makes it easy to apply one tag to a raft of packages. |
20 |
|
21 |
However, if one wishes to implement something that works without |
22 |
touching anything remotely part of portage itself, and one wants a |
23 |
fast and easy proof of concept , number 2 is the preferable approach. |
24 |
( Because you can make a basic example set of tags easily simply with |
25 |
a bit of "find > file" for each tag you wish to create ) |
26 |
|
27 |
Ultimately I think we'll see both forms emerging, long term we'll |
28 |
probably edit metadata.xml, and the data will be aggregated to form a |
29 |
singular fast-to-read tag index for each tag. |
30 |
|
31 |
But we can develop the other half of the system, the "Work with an |
32 |
existing tag index of sorts" /now/ and get a working proof of concept |
33 |
without needing to derail ourselves bikeshedding how the portage side |
34 |
of things will work. |
35 |
|
36 |
( And I think we can expect to see tools emerge for maintaining |
37 |
package tags, whether it be surgically or low-orbit-ion-cannon grade |
38 |
precision ) |
39 |
|
40 |
-- |
41 |
Kent |
42 |
|
43 |
perl -e "print substr( \"edrgmaM SPA NOcomil.ic\\@tfrken\", \$_ * 3, |
44 |
3 ) for ( 9,8,0,7,1,6,5,4,3,2 );" |
45 |
|
46 |
http://kent-fredric.fox.geek.nz |