mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-11-06 07:20:29 +03:00
Fix popen command logging
This commit is contained in:
parent
2c8df2c1ef
commit
9df3a491de
1 changed files with 4 additions and 5 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue