Re: Version comparaison.

Hans Deragon <[email protected]> Wed, 14 Jul 2004 08:59:19 -0400
Newsgroups gmane.linux.conectiva.apt-rpm
Organization Deragon Informatique inc.
Message-ID <[email protected]>
Thiago Macieira wrote:
> Hans Deragon wrote:
> 
>>Greetings.
>>
>>
>>  I have 2 versions of autofs in two different components.  I noticed
>>that apt-get considers:  3.1.7 > 4.1.3.lmw1
>>
>>  Why is that?  4.1.3.* is more recent.  Yet, apt-get insist that
>>3.1.7 is.  Is the lmw1 the problem?  How is verion comparaison done?
> 
> 
> Are you sure those are the versions in question? What are the Epochs on 
> those two packages?
> 
> $ rpmver -v 4.1.3.lmw1 3.1.7
> RPM version 4.1.3.lmw1 is greater than version 3.1.7.
> 
> $ rpmver -v 4.1.3.lmw1 1:3.1.7
> RPM version 4.1.3.lmw1 is lesser than version 1:3.1.7.

That's it!  Epoch was not set for 4.1.3.lmw1.  I set it to 1 and it works.  Thanks.

Now to find some documentation to understand what an Epoch is and why it affects 
version comparaison...  I love fixing stuff without understanding how I do it. ;)


Best regards,
Hans Deragon
--
Consultant en informatique/Software Consultant
Deragon Informatique inc.     Open source:
http://www.deragon.biz        http://facil.qc.ca (Promotion du libre)
mailto://[email protected]     http://autopoweroff.sourceforge.net (Logiciel)