mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-09-13 22:42:29 +03:00
scanner: only output "X problems found" if errors or --verbose
UNIX/POSIX standard behavior is to output nothing at all if a command succeeds. This suppresses "0 problems found", unless the user requests it.
This commit is contained in:
parent
78efc16fc2
commit
35d205a9b9
1 changed files with 1 additions and 1 deletions
|
@ -1294,7 +1294,7 @@ def main():
|
||||||
logging.info(_("Finished"))
|
logging.info(_("Finished"))
|
||||||
if options.json:
|
if options.json:
|
||||||
print(json.dumps(json_output))
|
print(json.dumps(json_output))
|
||||||
else:
|
elif probcount or options.verbose:
|
||||||
print(_("%d problems found") % probcount)
|
print(_("%d problems found") % probcount)
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue