couchdb-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kxe...@apache.org
Subject couchdb commit: updated refs/heads/1.x.x to 6bbdb8d
Date Tue, 24 Nov 2015 20:46:21 GMT
Repository: couchdb
Updated Branches:
  refs/heads/1.x.x 49fa67e54 -> 6bbdb8d98


Fix version checking for python pygments. Current method only works for versions numbers with
only one decimal point. This version splits the version numbers on '.' and compares the elements
converted to ints


Project: http://git-wip-us.apache.org/repos/asf/couchdb/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb/commit/6bbdb8d9
Tree: http://git-wip-us.apache.org/repos/asf/couchdb/tree/6bbdb8d9
Diff: http://git-wip-us.apache.org/repos/asf/couchdb/diff/6bbdb8d9

Branch: refs/heads/1.x.x
Commit: 6bbdb8d98e3c84353d07bd93d0cef23a33beeb52
Parents: 49fa67e
Author: Brian Brown <brian@codecleric.com>
Authored: Tue Nov 24 11:30:02 2015 -0700
Committer: Brian Brown <brian@codecleric.com>
Committed: Tue Nov 24 11:30:02 2015 -0700

----------------------------------------------------------------------
 configure.ac | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb/blob/6bbdb8d9/configure.ac
----------------------------------------------------------------------
diff --git a/configure.ac b/configure.ac
index 15eb938..656b77c 100644
--- a/configure.ac
+++ b/configure.ac
@@ -642,7 +642,8 @@ python 2> /dev/null << EOF
 import sys
 import pygments
 
-if float(pygments.__version__) >= 1.5:
+pygments_version = pygments.__version__.split('.')
+if int(pygments_version[0]) >= 1 and int(pygments_version[1]) > 5:
     sys.exit(0)
 else:
     sys.exit(1)


Mime
View raw message