Re: [gentoo-portage-dev] RFC: new virtual metadata variable to list combined deps
On Thu, 2006-10-26 at 18:50 +0200, Marius Mauch wrote: So now I was wondering a) if I'm the only one who finds this feature useful and b) if adding it at the dbapi level (in dbapi.aux_get) would be considered a good idea, so it could be used by other tools? Not sure if it would fit better in portage or gentoolkit. Anyhow, one of the big things that I need to do is fix the equery depends command. I see this code as potentially being useful in that regard. Regards, Paul -- gentoo-portage-dev@gentoo.org mailing list
[gentoo-portage-dev] RFC: new virtual metadata variable to list combined deps
Ok, I have to admit the subject may be a bit confusing, so let me get the motivation first: Often people want to know the dependencies of a package. Not much of a problem when they know how to use auxget or the portageq metadata commands. However these all work on the specific DEPEND, RDEPEND and PDEPEND vars directly, so to get all dependencies of a package one has to read all three variables. And as in general some entries exist in both DEPEND and RDEPEND one gets even more info than wanted. At least this me this manual parsing gets annoying over time. So in my auxget script[1] I added support for a new virtual metadata variable '*DEPEND' that basically reads and concatenates the three dep variables, then eliminates duplicates (of course only on the top level, complex atoms are treated as a single unit). This allows a quick check what dependencies a package has ignoring if it's buildtime, runtime or postbuild (or however you want translate the P in PDEPEND). So now I was wondering a) if I'm the only one who finds this feature useful and b) if adding it at the dbapi level (in dbapi.aux_get) would be considered a good idea, so it could be used by other tools? Marius -- Public Key at http://www.genone.de/info/gpg-key.pub In the beginning, there was nothing. And God said, 'Let there be Light.' And there was still nothing, but you could see a bit better. -- gentoo-portage-dev@gentoo.org mailing list
Re: [gentoo-portage-dev] RFC: new virtual metadata variable to list combined deps
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Marius Mauch wrote: So now I was wondering a) if I'm the only one who finds this feature useful and b) if adding it at the dbapi level (in dbapi.aux_get) would be considered a good idea, so it could be used by other tools? I think of aux_get as a simple, low-level, and raw interface to package metadata. I'd rather not see higher level dependency logic mangling this data behind the scenes. If a *DEPEND attribute is needed, I think that it should be an attribute of some higher level package class that provides access to various useful information that's derived from the raw metadata. Zac -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.5 (GNU/Linux) iD8DBQFFQPpb/ejvha5XGaMRAvoOAKC2YTgPWFKjEzNRD4ItElL7Axx0YgCgkKlr c43KAzP85svLxNp4Yu+J0Rg= =sv/O -END PGP SIGNATURE- -- gentoo-portage-dev@gentoo.org mailing list