Gentoo Archives: gentoo-dev

From: tigger@g.o
To: gentoo-dev@l.g.o
Subject: Re: [gentoo-dev] Idea for change of emerge -up output
Date: Fri, 03 Sep 2004 12:38:22
Message-Id: 20040903134110.GD6307@gentoo.org
In Reply to: Re: [gentoo-dev] Idea for change of emerge -up output by Robert Moss
1 On Fri, Sep 03, 2004 at 01:35:39PM +0100, Robert Moss wrote:
2 > >The current output of emerge -p is difficult to machine parse because
3 > >its difficult to split the package name and package version. However,
4
5 > and then you have something like app-text/ghostscript-7.07.1-r5. Then
6 > anything before hyphen-digit is the package name, and anything after the
7 > hyphen in hyphen-digit is the package version. So, you just want to (for
8 > example) regexp away "-[[:digit:]]*.*" for the package name, and match
9 > that and strip the hyphen for the version. Why is this difficult all of
10 > a sudden?
11
12 Not being funny, but wouldn't it be so much easier and cleaner the way I
13 described?
14
15 --
16 rob holland - [ tigger@g.o ]
17 [ 5251 4FAC D684 8845 5604 E44F D65C 392F D91B 4729 ]
18
19 --
20 gentoo-dev@g.o mailing list