mirror of
https://gitlab.com/fdroid/fdroidserver.git
synced 2024-09-17 10:40:12 +02:00
Print FDroidPopen params *before* executing
This commit is contained in:
parent
3a045e40c3
commit
9571c792db
@ -1864,6 +1864,11 @@ def FDroidPopen(commands, cwd,
|
|||||||
:param commands, cwd, stdout, stderr: like subprocess.Popen
|
:param commands, cwd, stdout, stderr: like subprocess.Popen
|
||||||
:param verbose: whether to print output as it is saved
|
:param verbose: whether to print output as it is saved
|
||||||
"""
|
"""
|
||||||
|
|
||||||
|
if verbose:
|
||||||
|
print "Directory: %s" % cwd
|
||||||
|
print " > %s" % ' '.join(commands)
|
||||||
|
|
||||||
result = PopenResult()
|
result = PopenResult()
|
||||||
p = subprocess.Popen(commands, cwd=cwd, stdout=stdout, stderr=stderr)
|
p = subprocess.Popen(commands, cwd=cwd, stdout=stdout, stderr=stderr)
|
||||||
|
|
||||||
@ -1897,9 +1902,6 @@ def FDroidPopen(commands, cwd,
|
|||||||
result.stderr += line
|
result.stderr += line
|
||||||
time.sleep(0.5)
|
time.sleep(0.5)
|
||||||
|
|
||||||
if verbose:
|
|
||||||
print "Directory: %s" % cwd
|
|
||||||
print " > %s" % ' '.join(commands)
|
|
||||||
p.communicate()
|
p.communicate()
|
||||||
result.returncode = p.returncode
|
result.returncode = p.returncode
|
||||||
return result
|
return result
|
||||||
|
Loading…
Reference in New Issue
Block a user