mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-09-16 07:52:35 +03:00
make FDroidPopen output based on --verbose
FDroidPopen outputs by default, this should be controlled by the --verbose flag so that most of the time, only meaningful messages are shown like errors and such. For command output that should be shown everytime, output=True can be set.
This commit is contained in:
parent
c6d946ed54
commit
ed73db65ae
2 changed files with 6 additions and 6 deletions
|
@ -1531,7 +1531,7 @@ def SilentPopen(commands, cwd=None, shell=False):
|
|||
return FDroidPopen(commands, cwd=cwd, shell=shell, output=False)
|
||||
|
||||
|
||||
def FDroidPopen(commands, cwd=None, shell=False, output=True):
|
||||
def FDroidPopen(commands, cwd=None, shell=False, output=False):
|
||||
"""
|
||||
Run a command and capture the possibly huge output.
|
||||
|
||||
|
@ -1558,7 +1558,7 @@ def FDroidPopen(commands, cwd=None, shell=False, output=True):
|
|||
while not stdout_reader.eof():
|
||||
while not stdout_queue.empty():
|
||||
line = stdout_queue.get()
|
||||
if output and options.verbose:
|
||||
if output or options.verbose:
|
||||
# Output directly to console
|
||||
sys.stdout.write(line)
|
||||
sys.stdout.flush()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue