diff options
-rwxr-xr-x | repo | 14 |
1 files changed, 12 insertions, 2 deletions
@@ -28,7 +28,7 @@ if __name__ == '__main__': | |||
28 | del magic | 28 | del magic |
29 | 29 | ||
30 | # increment this whenever we make important changes to this script | 30 | # increment this whenever we make important changes to this script |
31 | VERSION = (1, 16) | 31 | VERSION = (1, 17) |
32 | 32 | ||
33 | # increment this if the MAINTAINER_KEYS block is modified | 33 | # increment this if the MAINTAINER_KEYS block is modified |
34 | KEYRING_VERSION = (1,0) | 34 | KEYRING_VERSION = (1,0) |
@@ -220,7 +220,17 @@ def _Init(args): | |||
220 | 220 | ||
221 | def _CheckGitVersion(): | 221 | def _CheckGitVersion(): |
222 | cmd = [GIT, '--version'] | 222 | cmd = [GIT, '--version'] |
223 | proc = subprocess.Popen(cmd, stdout=subprocess.PIPE) | 223 | try: |
224 | proc = subprocess.Popen(cmd, stdout=subprocess.PIPE) | ||
225 | except OSError, e: | ||
226 | print >>sys.stderr | ||
227 | print >>sys.stderr, "fatal: '%s' is not available" % GIT | ||
228 | print >>sys.stderr, 'fatal: %s' % e | ||
229 | print >>sys.stderr | ||
230 | print >>sys.stderr, 'Please make sure %s is installed'\ | ||
231 | ' and in your path.' % GIT | ||
232 | raise CloneFailure() | ||
233 | |||
224 | ver_str = proc.stdout.read().strip() | 234 | ver_str = proc.stdout.read().strip() |
225 | proc.stdout.close() | 235 | proc.stdout.close() |
226 | proc.wait() | 236 | proc.wait() |