On Tue, Sep 10, 2013 at 03:46:57PM +0200, Michal Kube??ek wrote:
One problem with this is that it makes the way we are constructing KMP version strings rather fragile. As soon as module versions keep the same number of components, e.g.
1.0.0 -> 1.0.1 -> 1.0.2 -> 1.1.0 -> 1.1.1 -> ...
you are safe. But once you try
1 -> 1.1
you are in trouble.
I think that you could (mis-)use the ~ comparison mechanism for this provided by newer rpm versions: $ zypper vcmp 1~1 1~9 1~1 is older than 1~9 $ zypper vcmp 1.1~1 1~9 1.1~1 is newer than 1~9 That doesn't work in SLE11, though. Cheers, Michael. -- Michael Schroeder mls@suse.de SUSE LINUX Products GmbH, GF Jeff Hawn, HRB 16746 AG Nuernberg main(_){while(_=~getchar())putchar(~_-1/(~(_|32)/13*2-11)*13);} -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org