Community update: ecore-devel-1.0.0.2005110410-1mn.i586.rpm

Christian H. Toldnes christht at trustix.org
Sun Nov 6 19:40:35 EST 2005


Morten Nilsen wrote:
> Christian Haugan Toldnes wrote:
> 
>>We have been working on something like that now and then. By using 
>>swup's rpm interface you can check which one of two packages are newest, 
>>however, I've got no time to do that right now, so I generally simply 
>>remove some packages manually from time to time.
> 
> 
> well, I've written a small awk script to compare versions..

Any script will get confused once you start to introduce all the 
variants of version numbering rpm supports. And that's not including 
epoch and serial.. The one that knows what version is newer is rpm 
itself. That's why we need to use the swup library, which already has 
code for comparing two packages.

Trust me. I have implemented many such scripts to do comparisons, it 
does not work unless you use rpm to do the check. :)

Your script will of course work for packages with 'normal' version syntax.


c


-- 
Christian Haugan Toldnes
Trustix Developer


More information about the tsl-contrib-discuss mailing list