Fix popen command logging

This commit is contained in:
Ciaran Gultnieks 2014-06-25 09:25:47 +01:00
parent 2c8df2c1ef
commit 9df3a491de

View file

@ -1585,11 +1585,10 @@ def FDroidPopen(commands, cwd=None, shell=False, output=True):
:returns: A PopenResult. :returns: A PopenResult.
""" """
if output: if cwd:
if cwd: cwd = os.path.normpath(cwd)
cwd = os.path.normpath(cwd) logging.debug("Directory: %s" % cwd)
logging.info("Directory: %s" % cwd) logging.debug("> %s" % ' '.join(commands))
logging.info("> %s" % ' '.join(commands))
result = PopenResult() result = PopenResult()
p = subprocess.Popen(commands, cwd=cwd, shell=shell, p = subprocess.Popen(commands, cwd=cwd, shell=shell,