Mailinglist Archive: opensuse-packaging (80 mails)
| < Previous | Next > |
Re: [opensuse-packaging] perl "versioning" and rpm
- From: Michael Schroeder <mls@xxxxxxx>
- Date: Tue, 24 Aug 2010 18:50:56 +0200
- Message-id: <20100824165056.GA3230@xxxxxxx>
On Mon, Aug 16, 2010 at 11:14:05AM +0200, Christian wrote:
That's actually not true:
perl -e 'print "decimal\n" if v0.22 ge v0.2002'
or
perl -e 'print version->parse("0.22") <=> version->parse("0.2002"), "\n"'
Seems like the Author of Sub-Uplevel doesn't understand versions.
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
fell over the problem, that perl usually is using other versioning
scheme than rpm is.
Example:
Version changes of perl-Sub-Uplevel
0.22 Tue Nov 17 05:38:42 EST 2009
0.21_01 Sat Nov 29 15:24:49 EST 2008
0.2002 Thu Sep 11 14:33:09 EDT 2008
0.2001 Tue Sep 9 22:22:40 EDT 2008
0.20 Tue Sep 9 19:23:35 EDT 2008
perl is using a decimalized versioning, where 0.22 > 0.2002, but for rpm
it isn't.
That's actually not true:
perl -e 'print "decimal\n" if v0.22 ge v0.2002'
or
perl -e 'print version->parse("0.22") <=> version->parse("0.2002"), "\n"'
Seems like the Author of Sub-Uplevel doesn't understand versions.
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 > |