Mailinglist Archive: opensuse-packaging (83 mails)
| < Previous | Next > |
Re: [opensuse-packaging] RPM version ordering
- From: Michael Schroeder <mls@xxxxxxx>
- Date: Tue, 14 Oct 2008 10:27:13 +0200
- Message-id: <20081014082713.GB19898@xxxxxxx>
On Tue, Oct 14, 2008 at 08:19:15AM +0200, Pascal Bleser wrote:
Just to clarify: rpm splits on all non-alphanumeric characters
and compares the substrings. Thus "final" is compared against "a",
(But as said before: dist-upgrade has no problems with downgrading.
Just be sure that there's no repository still enabled with the
old version.)
Cheers,
Michael.
--
Michael Schroeder mls@xxxxxxx
SUSE LINUX Products GmbH, GF Markus Rex, HRB 16746 AG Nuernberg
main(_){while(_=~getchar())putchar(~_-1/(~(_|32)/13*2-11)*13);}
--
To unsubscribe, e-mail: opensuse-packaging+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-packaging+help@xxxxxxxxxxxx
i have a problem with one of my packages, python-openssl: the previous
version was called 0.7a and the current one is 0.7.
However, in rpm's (and zypp's) view 0.7a > 0.7 and the package will
break distribution upgrade because it won't let itself be "downgraded".
How can i work around this? Is it possible to e.g. specify that the
newer one Obsoletes: %{name} = 0.7a and be done with it?
$ rpmvercmp 0.7a 0.7+final
:0.7+final-0 is newer
Just to clarify: rpm splits on all non-alphanumeric characters
and compares the substrings. Thus "final" is compared against "a",
(But as said before: dist-upgrade has no problems with downgrading.
Just be sure that there's no repository still enabled with the
old version.)
Cheers,
Michael.
--
Michael Schroeder mls@xxxxxxx
SUSE LINUX Products GmbH, GF Markus Rex, HRB 16746 AG Nuernberg
main(_){while(_=~getchar())putchar(~_-1/(~(_|32)/13*2-11)*13);}
--
To unsubscribe, e-mail: opensuse-packaging+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-packaging+help@xxxxxxxxxxxx
| < Previous | Next > |