You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by kg...@apache.org on 2015/08/24 17:26:15 UTC

[2/3] qpid-proton git commit: NO-JIRA: Handle 2-digit and 3-digit version numbers

NO-JIRA: Handle 2-digit and 3-digit version numbers

Signed-off-by: Kenneth Giusti <kg...@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 <fl...@gmail.com>
Authored: Mon Aug 17 22:21:27 2015 +0200
Committer: Ken Giusti <kg...@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