Gentoo Archives: gentoo-portage-dev

From: Zac Medico <zmedico@g.o>
To: gentoo-portage-dev@l.g.o
Subject: Re: [gentoo-portage-dev] pretend --columns depends on --quiet?
Date: Thu, 07 May 2009 20:18:01
Message-Id: 4A034209.8010409@gentoo.org
In Reply to: Re: [gentoo-portage-dev] pretend --columns depends on --quiet? by Ned Ludd
1 -----BEGIN PGP SIGNED MESSAGE-----
2 Hash: SHA1
3
4 Ned Ludd wrote:
5 > On Thu, 2009-05-07 at 10:00 +0300, Amit Dor-Shifer wrote:
6 >> Hi.
7 >>
8 >> Seems like --columns depends on -q to work:
9 >>
10 >> amit0 ~ # emerge -p --color=n --columns -O -q portage
11 >> R sys-apps/portage 2.1.6.7
12 >> amit0 ~ # emerge -p --color=n --columns -O portage
13 >>
14 >> These are the packages that would be merged, in order:
15 >>
16 >> [ebuild R ] sys-apps/portage
17 >> [2.1.6.7]
18 >>
19 >> Is this WAD?
20 >> 10x,
21 >> Amit
22 >
23 >
24 > Yep. This looks like a bug with the [] part of the atom display.
25 >
26 > emerge -p --columns portage \
27 > | grep \\[ebuild \
28 > | awk '{print $4"-"$5}'
29 >
30 > Results: sys-apps/portage-[2.1.6.11]
31 >
32 > Quick work around that should be safe would be to
33 >
34 > tr '[,]' ' , ' |awk '{print $3"-"$4}'
35 >
36 > It is expected however that -q vs no -q will result in the atoms being
37 > at the same index.
38 >
39
40 Well, the code doesn't look like it's been touched, so it doesn't
41 seems like a regression...
42
43 - --
44 Thanks,
45 Zac
46 -----BEGIN PGP SIGNATURE-----
47 Version: GnuPG v2.0.11 (GNU/Linux)
48
49 iEYEARECAAYFAkoDQggACgkQ/ejvha5XGaP10QCgh0Eifv94+EvjN72YWFQjveIu
50 hlcAnAq0qFjPMiXKPZr9r/tA4NYdxnAm
51 =h0NB
52 -----END PGP SIGNATURE-----

Replies