Gentoo Archives: gentoo-dev

From: Meir Kriheli <mksoft@g.o>
To: gentoo-dev@l.g.o
Cc: Lisa Seelye <lisa@g.o>, gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] getting installed packages list (portage api)
Date: Sat, 21 Feb 2004 00:30:57
Message-Id: 200402210207.25782.mksoft@gentoo.org
In Reply to: Re: [gentoo-dev] getting installed packages list (portage api) by Lisa Seelye
1 -----BEGIN PGP SIGNED MESSAGE-----
2 Hash: SHA1
3
4 On Saturday 21 February 2004 00:18, Lisa Seelye wrote:
5 > On Fri, 2004-02-20 at 20:46, Meir Kriheli wrote:
6 > > -----BEGIN PGP SIGNED MESSAGE-----
7 > > Hash: SHA1
8 > >
9 > > Hi,
10 > >
11 > > I looked over the API, and couldn't come with one. Is there a way to get
12 > > the list of emerged packages through portage's API, or should I go
13 > > over /var/db/pkg ?
14 >
15 > qpkg -I ?
16 > /var/log/emerge.log ?
17
18 This is for gentoo-stats client, and of the design goals of the new client is
19 not to depend on additional packages (like gentoolkit). qpkg
20 checks /var/db/pkg, and same can be done in the client. No need for qpkg.
21
22 The client already utilizes portage's api and I prefer using it if possible.
23 The struct/data under /var/db/pkg may change in the future, and using the api
24 should prevent breakage in that situation.
25
26 Cheers
27 - --
28 Meir Kriheli
29 MKsoft systems
30 http://www.mksoft.co.il
31 -----BEGIN PGP SIGNATURE-----
32 Version: GnuPG v1.2.4 (GNU/Linux)
33
34 iD8DBQFANr1ZRkS5DWK1mZkRAvS7AJ45cJBjxj+5X13H/y6djcN+ZBoaygCgwntA
35 2pSW/2VKugvYF3OxdknZWLc=
36 =gKDL
37 -----END PGP SIGNATURE-----
38
39 --
40 gentoo-dev@g.o mailing list

Replies

Subject Author
Re: [gentoo-dev] getting installed packages list (portage api) Mike Frysinger <vapier@g.o>