Re: [gentoo-portage-dev] pretend --columns depends on --quiet?

2009-05-07 Thread Ned Ludd
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
> >>   Rsys-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 
Gentoo Linux




Re: [gentoo-portage-dev] pretend --columns depends on --quiet?

2009-05-07 Thread Zac Medico
-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
>>   Rsys-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-



Re: [gentoo-portage-dev] pretend --columns depends on --quiet?

2009-05-07 Thread Ned Ludd
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
>   Rsys-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 
Gentoo Linux




Re: [gentoo-portage-dev] pretend --columns depends on --quiet?

2009-05-07 Thread Zac Medico
-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-



[gentoo-portage-dev] pretend --columns depends on --quiet?

2009-05-07 Thread Amit Dor-Shifer
Hi.

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

amit0 ~ # emerge -p --color=n --columns -O -q portage
  Rsys-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