[yum] new problem with columns width output (parsing)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



Le Tue, 13 Mar 2007 09:48:44 +0100
Martin Hamant <mh@xxxxxxxxxxxx> écrivait:

> Le Mon, 12 Mar 2007 23:24:52 +0000
> Karanbir Singh <mail-lists@xxxxxxxxx> écrivait:
> 
> > Martin Hamant wrote:
> > > Hi,
> > > 
> > > I have a package named like this :
> > > 
> > > httpd.i386                               2.0.59-1.el4s1.5.el4.c
> > > centosplus      
> > > 
> > > As you see, version is too long for the column width.
> > > I tried to export COLUMNS with a higher value : no change.
> > > 
> > > Any idea ?
> > > 
> > 
> > What are yo trying to do ? for a visual scan it should not make much
> > of a difference, and if you are trying to script things for yum -
> > use the yum api to write things.
> 
> Hi,
> 
> Thank you for your answer,
> I fixed my parsing problem, httpd version number was not concerned.
> 
> In fact that was a problem with a package name returned by the
> Jpackage repository (java-1.5.0-sun-compat), as i was excluding to
> expect any version number in a package name... my regexp didn't like
> it. obviously, i don't like java ...
> 
> Thx :)
> 


This time, this is really a problem with the width of the version
string, take a look:

(centos 3!)
httpd.i386                               2.0.52-32.2.ent.centos update          
httpd-suexec.i386                        2.0.52-32.2.ent.centos update          
kernel.i686                              2.6.9-55.0.2.EL        update          
kernel-smp.i686                          2.6.9-55.0.2.EL        update          
krb5-libs.i386                           1.3.4-49               update          
krb5-workstation.i386                    1.3.4-49               update          
mod_ssl.i386                             1:2.0.52-32.2.ent.cent update          
							^^^^^^^^

In my script, I have to get the full version string , how can I do ?

Thank you !

-- 
Martin
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos


[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux