fix all other cases of sys.exit() overflow

This commit is contained in:
Hans-Christoph Steiner
2026-04-13 16:52:08 +02:00
parent d1df6be2e2
commit bbc5182b06
3 changed files with 4 additions and 4 deletions

View File

@@ -2454,13 +2454,13 @@ def main():
failed += 1
# an empty list of appids means check all apps, avoid that if files were given
if not options.appid:
sys.exit(failed)
sys.exit(failed != 0)
if not lint_metadata(options):
failed += 1
if failed:
sys.exit(failed)
sys.exit(1)
def lint_metadata(options):

View File

@@ -3021,7 +3021,7 @@ def main():
)
)
if errors:
sys.exit(errors)
sys.exit(1)
# Scan the archive repo for apks as well
if len(repodirs) > 1:

View File

@@ -306,7 +306,7 @@ def main():
logging.info("{0} successfully verified".format(verified))
if notverified > 0:
logging.info("{0} NOT verified".format(notverified))
sys.exit(notverified)
sys.exit(notverified != 0)
if __name__ == "__main__":