mirror of
https://github.com/f-droid/fdroidserver.git
synced 2026-05-09 16:23:33 -04:00
fix all other cases of sys.exit() overflow
This commit is contained in:
@@ -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):
|
||||
|
||||
@@ -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:
|
||||
|
||||
@@ -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__":
|
||||
|
||||
Reference in New Issue
Block a user