qpid-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kgiu...@apache.org
Subject [2/3] qpid-proton git commit: NO-JIRA: Handle 2-digit and 3-digit version numbers
Date Mon, 24 Aug 2015 15:26:15 GMT
NO-JIRA: Handle 2-digit and 3-digit version numbers

Signed-off-by: Kenneth Giusti <kgiusti@apache.org>


Project: http://git-wip-us.apache.org/repos/asf/qpid-proton/repo
Commit: http://git-wip-us.apache.org/repos/asf/qpid-proton/commit/af8c61f6
Tree: http://git-wip-us.apache.org/repos/asf/qpid-proton/tree/af8c61f6
Diff: http://git-wip-us.apache.org/repos/asf/qpid-proton/diff/af8c61f6

Branch: refs/heads/master
Commit: af8c61f69af9bd3bfd1e4856b57cc4c3d4fff5df
Parents: 99be646
Author: Flavio Percoco <flaper87@gmail.com>
Authored: Mon Aug 17 22:21:27 2015 +0200
Committer: Ken Giusti <kgiusti@apache.org>
Committed: Mon Aug 24 10:29:18 2015 -0400

----------------------------------------------------------------------
 proton-c/bindings/python/setuputils/bundle.py | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/qpid-proton/blob/af8c61f6/proton-c/bindings/python/setuputils/bundle.py
----------------------------------------------------------------------
diff --git a/proton-c/bindings/python/setuputils/bundle.py b/proton-c/bindings/python/setuputils/bundle.py
index 13b88e0..29b1cac 100644
--- a/proton-c/bindings/python/setuputils/bundle.py
+++ b/proton-c/bindings/python/setuputils/bundle.py
@@ -36,7 +36,9 @@ min_qpid_proton = (0, 10)
 min_qpid_proton_str = "%i.%i" % min_qpid_proton
 
 bundled_version = (0, 10, 0)
-bundled_version_str = "%i.%i.%i" % bundled_version
+bundled_version_str = ("%i.%i" % bundled_version[:-1]
+                       if bundled_version[-1] == 0 else
+                       "%i.%i.%i" % bundled_version)
 libqpid_proton = "qpid-proton-%s.tar.gz" % bundled_version_str
 libqpid_proton_url = ("http://www.apache.org/dist/qpid/proton/%s/%s" %
                       (bundled_version_str, libqpid_proton))


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org


Mime
View raw message