Gentoo Archives: gentoo-portage-dev

From: Brian <dol-sen@×××××.net>
To: gentoo-portage-dev@l.g.o
Subject: Re: [gentoo-portage-dev] Portage persistence structures :: information about ports tree
Date: Tue, 10 Jun 2008 01:51:25
Message-Id: 1213062958.22796.62.camel@localhost
In Reply to: Re: [gentoo-portage-dev] Portage persistence structures :: information about ports tree by "João Macaíba"
1 On Mon, 2008-06-09 at 20:51 -0300, João Macaíba wrote:
2 > On Tue, 2008-06-10 at 01:07 +0200, Marius Mauch wrote:
3 > > On Mon, 09 Jun 2008 17:36:14 -0300
4 > > João Macaíba <joao.macaiba@×××××.com> wrote:
5 > >
6 > > > May someone give me some help on this ? How does portage do the
7 > > > searchs ? Walk into the ports tree and build some structure or store
8 > > > this info on some embedded database like berkeley db or sqlite ?
9 > >
10 > > You're probably looking for the portdbapi class defined in
11 > > pym/portage.py (or pym/portage/dbapi/porttree.py in 2.2), in particular
12 > > the cp_all(), cpv_all(), cp_list() and aux_get() methods.
13 > >
14 > > Marius
15 >
16
17 I think for searching you may find the xmatch function to be a very
18 versatile and useful tool. I think it is one of the more used functions
19 that porthole uses from portage.
20
21
22 > Thanks very much, Marius, for you help/time ! :)
23 >
24 > I'll take a look at them.
25 >
26 > Best regards.
27 > --
28 > João Macaíba <joao.macaiba@×××××.com>
29 >
30 --
31 Brian <dol-sen@×××××.net>
32
33 --
34 gentoo-portage-dev@l.g.o mailing list