From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5371 invoked by uid 1002); 3 Mar 2003 19:24:24 -0000 Mailing-List: contact gentoo-dev-help@gentoo.org; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@gentoo.org Received: (qmail 30641 invoked from network); 3 Mar 2003 19:24:24 -0000 From: Chris Smith To: gentoo-dev@gentoo.org Date: Tue, 4 Mar 2003 08:00:11 +0000 User-Agent: KMail/1.5 References: <20030302062018.GB26087@avenger.localdomain> <20030302135156.GA1007@purematrix.com> <20030303181744.GD444@avenger.localdomain> In-Reply-To: <20030303181744.GD444@avenger.localdomain> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200303040800.12017.chris.rs@xtra.co.nz> X-MDaemon-Deliver-To: gentoo-dev@gentoo.org X-Return-Path: chris.rs@xtra.co.nz X-MDRcpt-To: gentoo-dev@gentoo.org X-MDRemoteIP: 90.0.0.5 Subject: Re: [gentoo-dev] Perl interface to portage X-Archives-Salt: 3bec91c2-e6a7-43a9-9d29-ad03098a9ed5 X-Archives-Hash: f97cd05aa40f6dc54ca6fcfe1793430f On Mon, 03 Mar 2003 18:17, Oleg Letsinsky wrote: > I want the script to be > more or less universal and "right" - i.e. no hardwired paths, so I need > the right (i.e. "already existing") way for a perl script to get a > portage variable - PORTDIR, DISTDIR is enough. Try parsing the output of "emerge info" its fast and has almost everything you need in it. Just a quick grep and awk should do it :D -- Whatever women do they must do twice as well as men to be thought half as good. Luckily this is not difficult. -- Charlotte Whitton -- gentoo-dev@gentoo.org mailing list