We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5a046e6 commit 439572dCopy full SHA for 439572d
git_sym.py
@@ -36,6 +36,14 @@ def shell(cmd):
36
"""
37
log("!%s" %cmd)
38
return subprocess.check_output(cmd, shell=True) #TODO: Allow python2.6?
39
+def system(cmd):
40
+ """Run cmd as a system-call.
41
+ Raise Exception on any error.
42
+ """
43
+ log(cmd)
44
+ rc = os.system(cmd)
45
+ if rc:
46
+ raise Exception('%d <- %r' %(rc, cmd))
47
def make_dirs(d):
48
log("makedirs(%s)" %d)
49
if not os.path.exists(d):
@@ -219,7 +227,7 @@ def retrieve_using_make(makefilename, paths):
219
227
cmd = "make -j -f %s %s" %(
220
228
makefilename,
221
229
' '.join("'%s'"%p for p in a_few))
222
- shell(cmd)
230
+ system(cmd)
223
231
def retrieve(paths):
224
232
debug("retrieve: %r" %paths)
225
233
if not paths:
0 commit comments