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

Re: Fixing wrong version number comparison



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

>From: Peter Bowen <pzb@scyld.com>
>Reply-To: rpm-list@redhat.com
>To: rpm-list@redhat.com
>Subject: Re: Fixing wrong version number comparison

>>I have perl-libwww-perl-1.0703 installed and I am trying to package
>>the newer version 1.09.  But rpm thinks that 1.09 is older than
>>1.0703.  Can I persuade rpm that in this particular case, 1.09 should
>>count as higher than 1.0703?

>I would suspect that perl-libwww-perl already has an epoch on it, as
>1.09 > 1.0703.

Nope:

% rpm -q --queryformat '%{serial} %{version}\n' perl-libnet
(none) 1.0703
% rpm -Uvh perl-libnet-1.09-icdoc1.i386.rpm
package perl-libnet-1.0703-47 (which is newer than perl-libnet-1.09-icdoc1) is already installed
% rpm -Uvh --force perl-libnet-1.09-icdoc1.i386.rpm
perl-libnet                 ##################################################
% rpm -q --queryformat '%{serial} %{version}\n' perl-libnet
(none) 1.09

If I build a package of 1.09 with 'Serial: 1' in the spec file then it
upgrades cleanly, but I want to avoid doing that.  What makes you so
sure that 1.09 > 1.0703?

(This is rpm 3.0.6 BTW - maybe the version number comparison has changed
with rpm 4?)

- -- 
Ed Avis <epa98@doc.ic.ac.uk>
Finger for PGP key

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE8EkswIMp73jhGogoRAnY6AJ45KWWpa2JCMecF5ik4xlO8I5DxdQCfTAZT
x7AXKR1Si3UE0BYL1+A3H3k=
=muer
-----END PGP SIGNATURE-----





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