git.samba.org
/
vlendec
/
samba-autobuild
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
70c75b9
)
Sort by release component integer values rather than using standard string
author
Jelmer Vernooij
<jelmer@canonical.com>
Sat, 12 Mar 2011 00:09:31 +0000
(
01:09
+0100)
committer
Jelmer Vernooij
<jelmer@canonical.com>
Sat, 12 Mar 2011 00:09:31 +0000
(
01:09
+0100)
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
patch
|
blob
|
history
diff --git
a/buildtools/wafsamba/samba_abi.py
b/buildtools/wafsamba/samba_abi.py
index 396a7fc9067d3db75200660be2534d2171261fcd..05b5d4e5cb38b6bae89b7fd3b1ea927d64a8073a 100644
(file)
--- 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