Re: dnsmasq - I'm a little confused....

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



Hi,

On Wed, Sep 2, 2009 at 17:03, Filipe Brandenburger<filbranden@xxxxxxxxx> wrote:
>> What's up here?  Is this really a case of incredibly slow mirrors or
>> is there something else?
>
> Is it maybe because 2.45-1.1.el5_3 < 2.45-1.el5_2.1 ??? Since '1' < 'e' ?

No, doesn't seem so, I found a way to check that in Python:

[filbranden@adm2 ~]$ python
Python 2.4.3 (#1, Jul 27 2009, 17:57:39)
[GCC 4.1.2 20080704 (Red Hat 4.1.2-44)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> import rpm
>>> rpm.labelCompare(('0', '2.45', '1.1.el5_3'), ('0', '2.45', '1.el5_2.1'))
1

"1" means the first parameter is the greater version ("-1" would be the second).

Cheers,
Filipe
_______________________________________________
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