From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13318 invoked from network); 3 Sep 2004 12:38:22 +0000 Received: from smtp.gentoo.org (156.56.111.197) by lists.gentoo.org with AES256-SHA encrypted SMTP; 3 Sep 2004 12:38:22 +0000 Received: from lists.gentoo.org ([156.56.111.196] helo=parrot.gentoo.org) by smtp.gentoo.org with esmtp (Exim 4.34) id 1C3DKf-0002KR-Rp for arch-gentoo-dev@lists.gentoo.org; Fri, 03 Sep 2004 12:38:21 +0000 Received: (qmail 15957 invoked by uid 89); 3 Sep 2004 12:38:21 +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 29474 invoked from network); 3 Sep 2004 12:38:21 +0000 Date: Fri, 3 Sep 2004 13:41:10 +0000 From: tigger@gentoo.org To: gentoo-dev@lists.gentoo.org Message-ID: <20040903134110.GD6307@gentoo.org> Mail-Followup-To: gentoo-dev@lists.gentoo.org References: <20040903125147.GB6307@gentoo.org> <4138651B.2080802@gentoo.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <4138651B.2080802@gentoo.org> User-Agent: Mutt/1.5.6i Subject: Re: [gentoo-dev] Idea for change of emerge -up output X-Archives-Salt: b378a942-0f3d-4723-bdac-6f4435996c44 X-Archives-Hash: 29da8dc42f718107359ea7fe1baf43d7 On Fri, Sep 03, 2004 at 01:35:39PM +0100, Robert Moss wrote: > >The current output of emerge -p is difficult to machine parse because > >its difficult to split the package name and package version. However, > and then you have something like app-text/ghostscript-7.07.1-r5. Then > anything before hyphen-digit is the package name, and anything after the > hyphen in hyphen-digit is the package version. So, you just want to (for > example) regexp away "-[[:digit:]]*.*" for the package name, and match > that and strip the hyphen for the version. Why is this difficult all of > a sudden? Not being funny, but wouldn't it be so much easier and cleaner the way I described? -- rob holland - [ tigger@gentoo.org ] [ 5251 4FAC D684 8845 5604 E44F D65C 392F D91B 4729 ] -- gentoo-dev@gentoo.org mailing list