You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by kx...@apache.org on 2015/11/24 21:46:21 UTC
couchdb commit: updated refs/heads/1.x.x to 6bbdb8d
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 <br...@codecleric.com>
Authored: Tue Nov 24 11:30:02 2015 -0700
Committer: Brian Brown <br...@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)