Gentoo Archives: gentoo-dev

From: Paul de Vrieze <pauldv@g.o>
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] [RFC] Treewide metadata.xml
Date: Fri, 27 May 2005 11:05:23
Message-Id: 200505271305.10421.pauldv@gentoo.org
In Reply to: [gentoo-dev] [RFC] Treewide metadata.xml by Danny van Dyk
1 On Friday 27 May 2005 12:38, Danny van Dyk wrote:
2 > Hi @ all,
3 >
4 > I'd like to have some feedback on an idea that stuck to my mind for
5 > some time already:
6 >
7 > Currently, we (should) have one metadata.xml file per package (8635 in
8 > the whole tree). This is quite handy if you want to look up information
9 > about a package you know by name.
10 >
11 > On the other hand, if you want to search for a package name via
12 > metadata, you have to traverse the whole tree. Quite unhandy if done
13 > w/o a cache and not yet implemented AFAIK.
14 >
15 > I would like to propose the following changes:
16 > Let's keep the metadata.xml in each package's directory in _CVS only_.
17 > Don't propagate them via rsync. Instead, use a script to compile all
18 > metadata.xml files into one central (XML) file. (This would probably
19 > need slight changes to the DTD). This file would then be placed into
20 > gentoo-portage/metadata/ and Portage,devs and users could easily parse
21 > it.
22 >
23 > TIA for any feedback on this!
24
25 Guys,
26
27 I've actually implemented a script that creates such a file (except for
28 categories) and provided support in the dtd for it. I'd need to search
29 where I have the script (it was fairly simple, but did a lot of parsing
30 to ensure correctness). It was meant to kindoff be an alternative to
31 packages.gentoo.org with all nice links to herds, maintainers etc. (Even
32 reverse search). The biggest problem was that the stuff was kindof slow.
33 Especially searching by xslt.
34
35 The script is kindoff slow because of all the correction stuff, but it is
36 workable. You can find it (and the accompanying xslt script) in:
37 http://dev.gentoo.org/~pauldv/pkgList.tar.bz2
38
39 Paul
40
41 --
42 Paul de Vrieze
43 Gentoo Developer
44 Mail: pauldv@g.o
45 Homepage: http://www.devrieze.net

Replies

Subject Author
Re: [gentoo-dev] [RFC] Treewide metadata.xml Danny van Dyk <kugelfang@g.o>