1 |
On Mon, 2006-24-04 at 14:20 +0200, Marius Mauch wrote: |
2 |
> On Sun, 23 Apr 2006 08:55:58 -0700 |
3 |
> Brian <dol-sen@×××××.net> wrote: |
4 |
> |
5 |
> > I was thinking that /etc/portage/sets/glsa could be a symlink to set |
6 |
> > list in the current metadata/glsa directory of the portage tree. That |
7 |
> > file should be relatively easy to auto-generate from the existing |
8 |
> > glsa*.xml files there already. Perhaps a FEATURES="GLSA_SET" would |
9 |
> > generate that file on completion of an "emerge --sync" I could also |
10 |
> > then put a GLSA field into porthole's package Summary view as well as |
11 |
> > a GLSA notebook page(s) to display the appropriate glsa?.xml file(s). |
12 |
> |
13 |
> Too complicated. First you currently need gentoolkit for glsa.py, and |
14 |
> portage shouldn't depend on gentoolkit. |
15 |
|
16 |
I did not mean portage should and I din't want to depend on gentoolkit |
17 |
either. |
18 |
|
19 |
> Also you can't store |
20 |
> system-specific files in the tree. |
21 |
|
22 |
Yeah, that was a bit of a thought evolution while I was typing. I |
23 |
realized after I hit "send". At first I thought it could be included in |
24 |
the sync. Then thought it's only a duplication of the data already |
25 |
there, so why not generate it (save bandwidth), since the data will only |
26 |
change at sync time, just do it once then. |
27 |
|
28 |
|
29 |
> And finally using an intermediate |
30 |
> file creates some additional issues (check for IO/FS problems, checking |
31 |
> permissions, etc). |
32 |
> Any reason you need a real file for this instead of just generating the |
33 |
> list on the fly? |
34 |
|
35 |
I thought a smaller stripped down glsa.py module could generate the file |
36 |
at completion of the sync. Then no special code is needed internal in |
37 |
porthole beyond checking for set inclusion, atom matching, just a |
38 |
glsa_flag=True to ignore members that are not already installed. |
39 |
|
40 |
Once portage was able to handle sets, it would almost automatically be |
41 |
able to handle a glsa set as well. The only difference is not |
42 |
installing a set member that is not already installed. |
43 |
|
44 |
> Just check glsa-check how to do that, it's not much |
45 |
> more than a wrapper for glsa.py. |
46 |
> |
47 |
I have started looking at your work. Nice by the way :), will probably |
48 |
use it for an example of how to eliminate the pyxml dep you consider |
49 |
evil :). |
50 |
I realize that this method is not as complete and versatile as what |
51 |
glsa-check is, but will do what probably the majority of users |
52 |
want/require/use. |
53 |
|
54 |
> Marius |
55 |
> |
56 |
-- |
57 |
Brian <dol-sen@×××××.net> |
58 |
|
59 |
-- |
60 |
gentoo-portage-dev@g.o mailing list |