1
0
forked from 0ad/0ad

Fix the exit codes of checkrefs.py

This commit is contained in:
Dunedan 2024-08-25 17:08:00 +02:00
parent 39f2889cf7
commit 0dea22285e
Signed by untrusted user: Dunedan
GPG Key ID: 885B16854284E0B2
3 changed files with 3 additions and 3 deletions

View File

@ -145,7 +145,7 @@ class CheckRefs:
if not validator.run():
self.inError = True
return self.inError
return not self.inError
def get_mod_dependencies(self, *mods):
modjsondeps = []

View File

@ -63,7 +63,7 @@ class RelaxNGValidator:
self.validate_soundgroups()
self.validate_terrains()
self.validate_textures()
return self.inError
return not self.inError
def main(self):
"""Program entry point, parses command line arguments and launches the validation"""

View File

@ -220,7 +220,7 @@ class Validator:
)
self.inError = True
return self.inError
return not self.inError
if __name__ == "__main__":