[jhbuild] check for git >= 1.5.6 in sanitycheck
- From: Frederic Peters <fpeters src gnome org>
- To: svn-commits-list gnome org
- Subject: [jhbuild] check for git >= 1.5.6 in sanitycheck
- Date: Fri, 24 Apr 2009 10:14:10 -0400 (EDT)
commit 0a4467c2129bfc1006d01275b5b95340cc390571
Author: Frederic Peters <fpeters 0d be>
Date: Fri Apr 24 16:07:06 2009 +0200
check for git >= 1.5.6 in sanitycheck
---
jhbuild/commands/sanitycheck.py | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/jhbuild/commands/sanitycheck.py b/jhbuild/commands/sanitycheck.py
index 529b732..28b54d3 100644
--- a/jhbuild/commands/sanitycheck.py
+++ b/jhbuild/commands/sanitycheck.py
@@ -146,6 +146,10 @@ class cmd_sanitycheck(Command):
git_help = os.popen('git --help', 'r').read()
if not 'clone' in git_help:
uprint(_('Installed git program is not the right git'))
+ else:
+ if not check_version(['git', '--version'],
+ r'git version ([\d.]+)', '1.5.6'):
+ uprint(_('%s not found') % 'git >= 1.5.6')
except:
uprint(_('Could not check git program'))
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]