From 1d1e5cbd27e3253eb77c04a832eab6ede5d67826 Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Sat, 12 Mar 2011 01:09:31 +0100 Subject: Sort by release component integer values rather than using standard string sort. This makes sure tevent 0.9.9 is considered to be older than 0.9.10 and 0.9.11 --- buildtools/wafsamba/samba_abi.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'buildtools') diff --git a/buildtools/wafsamba/samba_abi.py b/buildtools/wafsamba/samba_abi.py index 396a7fc906..05b5d4e5cb 100644 --- a/buildtools/wafsamba/samba_abi.py +++ b/buildtools/wafsamba/samba_abi.py @@ -162,7 +162,8 @@ def abi_write_vscript(vscript, libname, current_version, versions, symmap, abi_m f = open(vscript, mode='w') last_key = "" - for k in sorted(versions): + versions = sorted(versions, key=lambda x: map(int, x.split("."))) + for k in versions: symver = "%s_%s" % (libname, k) if symver == current_version: break -- cgit