mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-09-16 16:02:33 +03:00
Don't print cmd info if output is false
This commit is contained in:
parent
8b26f4b319
commit
5525c5cd5f
1 changed files with 4 additions and 3 deletions
|
@ -1383,9 +1383,10 @@ def FDroidPopen(commands, cwd=None, output=True):
|
||||||
:returns: A PopenResult.
|
:returns: A PopenResult.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
if cwd:
|
if output:
|
||||||
logging.info("Directory: %s" % cwd)
|
if cwd:
|
||||||
logging.info("> %s" % ' '.join(commands))
|
logging.info("Directory: %s" % cwd)
|
||||||
|
logging.info("> %s" % ' '.join(commands))
|
||||||
|
|
||||||
result = PopenResult()
|
result = PopenResult()
|
||||||
p = subprocess.Popen(commands, cwd=cwd,
|
p = subprocess.Popen(commands, cwd=cwd,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue