Fix popen command logging

This commit is contained in:
Ciaran Gultnieks committed 2014-06-25 09:25:55 +01:00
1 parent 2c8df2c1ef
commit 9df3a491de
1 file changed
+4 -5
+4 -5
View File
@@ -1585,11 +1585,10 @@ def FDroidPopen(commands, cwd=None, shell=False, output=True):
:returns: A PopenResult.
"""
if output:
if cwd:
cwd = os.path.normpath(cwd)
logging.info("Directory: %s" % cwd)
logging.info("> %s" % ' '.join(commands))
if cwd:
cwd = os.path.normpath(cwd)
logging.debug("Directory: %s" % cwd)
logging.debug("> %s" % ' '.join(commands))
result = PopenResult()
p = subprocess.Popen(commands, cwd=cwd, shell=shell,