author | Han-Wen Nienhuys <hanwen@google.com> | |
Wed, 23 May 2007 21:49:35 +0000 (18:49 -0300) | ||
committer | Han-Wen Nienhuys <hanwen@google.com> | |
Wed, 30 May 2007 16:46:25 +0000 (13:46 -0300) |
1 | 2 | |||
---|---|---|---|---|
contrib/fast-import/git-p4 | patch | | diff1 | | diff2 | | blob | history |
diff --cc contrib/fast-import/git-p4
index b280e9774227100015cb3c6c8ae7448d0ce844f0,794286ee8e43394c93c0aae66d540efc2da8d26e..28ea53dea4c45fb3112bea175a4f91d5fe0e0d7d
pipe = os.popen(c, 'rb')
val = pipe.read()
- if pipe.close():
- sys.stderr.write('Command failed: %s' % c)
+ if pipe.close() and not ignore_error:
- sys.stderr.write('Command %s failed\n' % c)
++ sys.stderr.write('Command failed: %s\n' % c)
sys.exit(1)
return val
pipe = os.popen(c, 'rb')
val = pipe.readlines()
if pipe.close():
- sys.stderr.write('Command %s failed\n' % c)
- sys.stderr.write('Command failed: %s' % c)
++ sys.stderr.write('Command failed: %s\n' % c)
sys.exit(1)
return val