1
0
mirror of https://gitlab.com/fdroid/fdroidserver.git synced 2024-11-13 02:30:11 +01:00

Print FDroidPopen params *before* executing

This commit is contained in:
Daniel Martí 2013-10-29 20:39:12 +01:00
parent 3a045e40c3
commit 9571c792db

View File

@ -1864,6 +1864,11 @@ def FDroidPopen(commands, cwd,
:param commands, cwd, stdout, stderr: like subprocess.Popen
:param verbose: whether to print output as it is saved
"""
if verbose:
print "Directory: %s" % cwd
print " > %s" % ' '.join(commands)
result = PopenResult()
p = subprocess.Popen(commands, cwd=cwd, stdout=stdout, stderr=stderr)
@ -1897,9 +1902,6 @@ def FDroidPopen(commands, cwd,
result.stderr += line
time.sleep(0.5)
if verbose:
print "Directory: %s" % cwd
print " > %s" % ' '.join(commands)
p.communicate()
result.returncode = p.returncode
return result