From 9571c792db3fbb54c830f498fd5364f1fc892072 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Mart=C3=AD?= Date: Tue, 29 Oct 2013 20:39:12 +0100 Subject: [PATCH] Print FDroidPopen params *before* executing --- fdroidserver/common.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/fdroidserver/common.py b/fdroidserver/common.py index 53021e9e..111e6643 100644 --- a/fdroidserver/common.py +++ b/fdroidserver/common.py @@ -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