[CentOS] dnsmasq - I'm a little confused....

Filipe Brandenburger filbranden at gmail.com
Wed Sep 2 21:09:24 UTC 2009


Hi,

On Wed, Sep 2, 2009 at 17:03, Filipe Brandenburger<filbranden at gmail.com> 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 at 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



More information about the CentOS mailing list