summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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