Mailinglist Archive: opensuse-factory (507 mails)

< Previous Next >
Re: [opensuse-factory] 'zypper dup' updating kernel when 'zypper up' does not? (fwd)
  • From: Michael Schroeder <mls@xxxxxxx>
  • Date: Wed, 29 Jul 2009 10:50:35 +0200
  • Message-id: <20090729085035.GA11229@xxxxxxx>
On Wed, Jul 29, 2009 at 10:16:55AM +0200, Stephan Kulow wrote:
I'm afraid the problem is that it sees 2.6.30_10 as higher version
than 2.6.30.2_1 because it compares by split(/\./, $version) - and
there you only compare 30 with 30_10 - and there usually _10 is the
higher one

Just to clarify things, rpm splits by /[^a-zA-Z0-9]/, so
2.6.30_10 compares to 2.6.30.2_1 as

2 6 30 10
2 6 30 2 1

and 10 > 2.

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-factory+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: opensuse-factory+help@xxxxxxxxxxxx

< Previous Next >