summaryrefslogtreecommitdiff
path: root/buildtools/wafsamba
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@canonical.com>2011-03-12 01:09:31 +0100
committerJelmer Vernooij <jelmer@canonical.com>2011-03-12 01:09:31 +0100
commit1d1e5cbd27e3253eb77c04a832eab6ede5d67826 (patch)
tree668bc8bb5869424422fae90f548d176a87a0ee7b /buildtools/wafsamba
parent70c75b9ddfdc9801be0b5ba89cd095e974c22626 (diff)
downloadsamba-1d1e5cbd27e3253eb77c04a832eab6ede5d67826.tar.gz
samba-1d1e5cbd27e3253eb77c04a832eab6ede5d67826.tar.bz2
samba-1d1e5cbd27e3253eb77c04a832eab6ede5d67826.zip
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
Diffstat (limited to 'buildtools/wafsamba')
-rw-r--r--buildtools/wafsamba/samba_abi.py3
1 files changed, 2 insertions, 1 deletions
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