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

Don't print cmd info if output is false

This commit is contained in:
Daniel Martí 2014-01-31 09:22:30 +01:00
parent 8b26f4b319
commit 5525c5cd5f

View File

@ -1383,9 +1383,10 @@ def FDroidPopen(commands, cwd=None, output=True):
:returns: A PopenResult.
"""
if cwd:
logging.info("Directory: %s" % cwd)
logging.info("> %s" % ' '.join(commands))
if output:
if cwd:
logging.info("Directory: %s" % cwd)
logging.info("> %s" % ' '.join(commands))
result = PopenResult()
p = subprocess.Popen(commands, cwd=cwd,