Show More
@@ -278,6 +278,17 b' def has_gettext():' | |||
|
278 | 278 | def has_git(): |
|
279 | 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 | 292 | @check("docutils", "Docutils text processing library") |
|
282 | 293 | def has_docutils(): |
|
283 | 294 | try: |
General Comments 0
You need to be logged in to leave comments.
Login now