# HG changeset patch # User Sylvain Thénault # Date 1267020493 -3600 # Node ID ce3adab29aefc4c41323f71efc139ace6f663378 # Parent 4aaf87e7f79ee717cd905dfe2480df7d44751307# Parent 876a79ece6f7500ab8a6dad81da7f648d6e54317 merge diff -r 4aaf87e7f79e -r ce3adab29aef cwctl.py --- a/cwctl.py Wed Feb 24 15:07:17 2010 +0100 +++ b/cwctl.py Wed Feb 24 15:08:13 2010 +0100 @@ -159,14 +159,16 @@ # base commands ############################################################### def version_strictly_lower(a,b): + from logilab.common.changelog import Version if a: - a = a.split('.') + a = Version(a) if b: - b = b.split('.') + b = Version(b) return a < b def max_version(a, b): - return '.'.join(max(a.split('.'), b.split('.'))) + from logilab.common.changelog import Version + return str(max(Version(a), Version(b))) class ConfigurationProblem(object): """Each cube has its own list of dependencies on other cubes/versions.