From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([69.77.167.62] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1K5t1A-0005AY-TJ for garchives@archives.gentoo.org; Tue, 10 Jun 2008 01:51:25 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id E160DE0681; Tue, 10 Jun 2008 01:51:23 +0000 (UTC) Received: from defout.telus.net (outbound05.telus.net [199.185.220.224]) by pigeon.gentoo.org (Postfix) with ESMTP id AF420E0681 for ; Tue, 10 Jun 2008 01:51:23 +0000 (UTC) Received: from priv-edtnaa04.telusplanet.net ([154.20.131.164]) by priv-edtnes90.telusplanet.net (InterMail vM.7.08.02.00 201-2186-121-20061213) with ESMTP id <20080610015123.IMKB2104.priv-edtnes90.telusplanet.net@priv-edtnaa04.telusplanet.net> for ; Mon, 9 Jun 2008 19:51:23 -0600 Received: from [192.168.1.200] (d154-20-131-164.bchsia.telus.net [154.20.131.164]) by priv-edtnaa04.telusplanet.net (BorderWare MXtreme Infinity Mail Firewall) with ESMTP id 26Q098FJN9 for ; Mon, 9 Jun 2008 19:51:23 -0600 (MDT) Subject: Re: [gentoo-portage-dev] Portage persistence structures :: information about ports tree From: Brian To: gentoo-portage-dev@lists.gentoo.org In-Reply-To: <1213055496.31291.87.camel@cons> References: <1213043774.31291.85.camel@cons> <20080610010743.b920372d.genone@gentoo.org> <1213055496.31291.87.camel@cons> Content-Type: text/plain; charset=UTF-8 Date: Mon, 09 Jun 2008 18:55:58 -0700 Message-Id: <1213062958.22796.62.camel@localhost> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-portage-dev@lists.gentoo.org Reply-to: gentoo-portage-dev@lists.gentoo.org Mime-Version: 1.0 X-Mailer: Evolution 2.12.3 Content-Transfer-Encoding: quoted-printable X-Archives-Salt: 195830f1-cef3-424b-9e86-2585bd294a7f X-Archives-Hash: 9b08c18ffdcaa1d33b536a840d80457d On Mon, 2008-06-09 at 20:51 -0300, Jo=C3=A3o Maca=C3=ADba wrote: > On Tue, 2008-06-10 at 01:07 +0200, Marius Mauch wrote: > > On Mon, 09 Jun 2008 17:36:14 -0300 > > Jo=C3=A3o Maca=C3=ADba wrote: > >=20 > > > May someone give me some help on this ? How does portage do the > > > searchs ? Walk into the ports tree and build some structure or stor= e > > > this info on some embedded database like berkeley db or sqlite ? > >=20 > > You're probably looking for the portdbapi class defined in > > pym/portage.py (or pym/portage/dbapi/porttree.py in 2.2), in particul= ar > > the cp_all(), cpv_all(), cp_list() and aux_get() methods. > >=20 > > Marius >=20 I think for searching you may find the xmatch function to be a very versatile and useful tool. I think it is one of the more used functions that porthole uses from portage. > Thanks very much, Marius, for you help/time ! :) >=20 > I'll take a look at them. >=20 > Best regards. > --=20 > Jo=C3=A3o Maca=C3=ADba >=20 --=20 Brian --=20 gentoo-portage-dev@lists.gentoo.org mailing list