mirror of
https://gitlab.com/fdroid/fdroidserver.git
synced 2024-09-11 15:13:27 +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 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
|
||||
|
Loading…
Reference in New Issue
Block a user