fix all other cases of sys.exit() overflow

This commit is contained in:
Hans-Christoph Steiner committed 2026-04-20 16:58:30 +00:00
1 parent d1df6be2e2
commit bbc5182b06
3 files changed
+4 -4

No files matched your search

+2 -2
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):
+1 -1
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:
+1 -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__":