qpid-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kgiu...@apache.org
Subject [2/2] qpid-proton git commit: NO-JIRA: Handle 2-digit and 3-digit version numbers
Date Mon, 24 Aug 2015 15:21:13 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/e81f55a4
Tree: http://git-wip-us.apache.org/repos/asf/qpid-proton/tree/e81f55a4
Diff: http://git-wip-us.apache.org/repos/asf/qpid-proton/diff/e81f55a4

Branch: refs/heads/0.10.x
Commit: e81f55a451fcac86235f6cb897b12e5918ee9636
Parents: e38435b
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 11:14:03 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/e81f55a4/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