Show More
@@ -278,6 +278,17 b' def has_gettext():' | |||||
278 | def has_git(): |
|
278 | def has_git(): | |
279 | return matchoutput('git --version 2>&1', br'^git version') |
|
279 | return matchoutput('git --version 2>&1', br'^git version') | |
280 |
|
280 | |||
|
281 | def getgitversion(): | |||
|
282 | m = matchoutput('git --version 2>&1', br'git version (\d+)\.(\d+)') | |||
|
283 | if not m: | |||
|
284 | return (0, 0) | |||
|
285 | return (int(m.group(1)), int(m.group(2))) | |||
|
286 | ||||
|
287 | @checkvers("git", "git client (with ext::sh support) version >= %s", (1.9,)) | |||
|
288 | def has_git_range(v): | |||
|
289 | major, minor = v.split('.')[0:2] | |||
|
290 | return getgitversion() >= (int(major), int(minor)) | |||
|
291 | ||||
281 | @check("docutils", "Docutils text processing library") |
|
292 | @check("docutils", "Docutils text processing library") | |
282 | def has_docutils(): |
|
293 | def has_docutils(): | |
283 | try: |
|
294 | try: |
General Comments 0
You need to be logged in to leave comments.
Login now