public inbox for gentoo-portage-dev@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-portage-dev] pretend --columns depends on --quiet?
@ 2009-05-07  7:00 Amit Dor-Shifer
  2009-05-07 16:28 ` Zac Medico
  2009-05-07 16:35 ` Ned Ludd
  0 siblings, 2 replies; 5+ messages in thread
From: Amit Dor-Shifer @ 2009-05-07  7:00 UTC (permalink / raw
  To: gentoo-portage-dev

Hi.

Seems like --columns depends on -q to work:

amit0 ~ # emerge -p --color=n --columns -O -q portage
  R    sys-apps/portage 2.1.6.7
amit0 ~ # emerge -p --color=n --columns -O portage

These are the packages that would be merged, in order:

[ebuild   R   ] sys-apps/portage                                      
[2.1.6.7]

Is this WAD?
10x,
Amit



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [gentoo-portage-dev] pretend --columns depends on --quiet?
  2009-05-07  7:00 [gentoo-portage-dev] pretend --columns depends on --quiet? Amit Dor-Shifer
@ 2009-05-07 16:28 ` Zac Medico
  2009-05-07 16:35 ` Ned Ludd
  1 sibling, 0 replies; 5+ messages in thread
From: Zac Medico @ 2009-05-07 16:28 UTC (permalink / raw
  To: gentoo-portage-dev

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Amit Dor-Shifer wrote:
> Hi.
> 
> Seems like --columns depends on -q to work:

I "works" either way, but it works differently depending on whether
- -q is enabled.

- --
Thanks,
Zac
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.11 (GNU/Linux)

iEYEARECAAYFAkoDDDQACgkQ/ejvha5XGaNnYgCfbsbIHuHYkkDyGV4CvYxVHn1c
ovsAoOjhwTJg+LbTsza3ERnaj8sOW3JJ
=FO+J
-----END PGP SIGNATURE-----



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [gentoo-portage-dev] pretend --columns depends on --quiet?
  2009-05-07  7:00 [gentoo-portage-dev] pretend --columns depends on --quiet? Amit Dor-Shifer
  2009-05-07 16:28 ` Zac Medico
@ 2009-05-07 16:35 ` Ned Ludd
  2009-05-07 20:18   ` Zac Medico
  1 sibling, 1 reply; 5+ messages in thread
From: Ned Ludd @ 2009-05-07 16:35 UTC (permalink / raw
  To: gentoo-portage-dev

On Thu, 2009-05-07 at 10:00 +0300, Amit Dor-Shifer wrote:
> Hi.
> 
> Seems like --columns depends on -q to work:
> 
> amit0 ~ # emerge -p --color=n --columns -O -q portage
>   R    sys-apps/portage 2.1.6.7
> amit0 ~ # emerge -p --color=n --columns -O portage
> 
> These are the packages that would be merged, in order:
> 
> [ebuild   R   ] sys-apps/portage                                      
> [2.1.6.7]
> 
> Is this WAD?
> 10x,
> Amit


Yep. This looks like a bug with the [] part of the atom display.

emerge -p --columns portage \
  |  grep \\[ebuild \
  | awk '{print $4"-"$5}'

Results: sys-apps/portage-[2.1.6.11]

Quick work around that should be safe would be to 

tr '[,]' ' , ' |awk '{print $3"-"$4}'

It is expected however that -q vs no -q will result in the atoms being
at the same index.

-- 
Ned Ludd <solar@gentoo.org>
Gentoo Linux




^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [gentoo-portage-dev] pretend --columns depends on --quiet?
  2009-05-07 16:35 ` Ned Ludd
@ 2009-05-07 20:18   ` Zac Medico
  2009-05-07 20:47     ` Ned Ludd
  0 siblings, 1 reply; 5+ messages in thread
From: Zac Medico @ 2009-05-07 20:18 UTC (permalink / raw
  To: gentoo-portage-dev

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Ned Ludd wrote:
> On Thu, 2009-05-07 at 10:00 +0300, Amit Dor-Shifer wrote:
>> Hi.
>>
>> Seems like --columns depends on -q to work:
>>
>> amit0 ~ # emerge -p --color=n --columns -O -q portage
>>   R    sys-apps/portage 2.1.6.7
>> amit0 ~ # emerge -p --color=n --columns -O portage
>>
>> These are the packages that would be merged, in order:
>>
>> [ebuild   R   ] sys-apps/portage                                      
>> [2.1.6.7]
>>
>> Is this WAD?
>> 10x,
>> Amit
> 
> 
> Yep. This looks like a bug with the [] part of the atom display.
> 
> emerge -p --columns portage \
>   |  grep \\[ebuild \
>   | awk '{print $4"-"$5}'
> 
> Results: sys-apps/portage-[2.1.6.11]
> 
> Quick work around that should be safe would be to 
> 
> tr '[,]' ' , ' |awk '{print $3"-"$4}'
> 
> It is expected however that -q vs no -q will result in the atoms being
> at the same index.
> 

Well, the code doesn't look like it's been touched, so it doesn't
seems like a regression...

- --
Thanks,
Zac
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.11 (GNU/Linux)

iEYEARECAAYFAkoDQggACgkQ/ejvha5XGaP10QCgh0Eifv94+EvjN72YWFQjveIu
hlcAnAq0qFjPMiXKPZr9r/tA4NYdxnAm
=h0NB
-----END PGP SIGNATURE-----



^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: [gentoo-portage-dev] pretend --columns depends on --quiet?
  2009-05-07 20:18   ` Zac Medico
@ 2009-05-07 20:47     ` Ned Ludd
  0 siblings, 0 replies; 5+ messages in thread
From: Ned Ludd @ 2009-05-07 20:47 UTC (permalink / raw
  To: gentoo-portage-dev

On Thu, 2009-05-07 at 13:18 -0700, Zac Medico wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> Ned Ludd wrote:
> > On Thu, 2009-05-07 at 10:00 +0300, Amit Dor-Shifer wrote:
> >> Hi.
> >>
> >> Seems like --columns depends on -q to work:
> >>
> >> amit0 ~ # emerge -p --color=n --columns -O -q portage
> >>   R    sys-apps/portage 2.1.6.7
> >> amit0 ~ # emerge -p --color=n --columns -O portage
> >>
> >> These are the packages that would be merged, in order:
> >>
> >> [ebuild   R   ] sys-apps/portage                                      
> >> [2.1.6.7]
> >>
> >> Is this WAD?
> >> 10x,
> >> Amit
> > 
> > 
> > Yep. This looks like a bug with the [] part of the atom display.
> > 
> > emerge -p --columns portage \
> >   |  grep \\[ebuild \
> >   | awk '{print $4"-"$5}'
> > 
> > Results: sys-apps/portage-[2.1.6.11]
> > 
> > Quick work around that should be safe would be to 
> > 
> > tr '[,]' ' , ' |awk '{print $3"-"$4}'
> > 
> > It is expected however that -q vs no -q will result in the atoms being
> > at the same index.
> > 

Correction: 

It is expected however that -q vs no -q will "NOT" result in the atoms
being at the same index.




-- 
Ned Ludd <solar@gentoo.org>
Gentoo Linux




^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2009-05-07 20:48 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-05-07  7:00 [gentoo-portage-dev] pretend --columns depends on --quiet? Amit Dor-Shifer
2009-05-07 16:28 ` Zac Medico
2009-05-07 16:35 ` Ned Ludd
2009-05-07 20:18   ` Zac Medico
2009-05-07 20:47     ` Ned Ludd

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox