Commit 4a36c457 authored by Benjamin Winger's avatar Benjamin Winger

Made inquisitor exit nonzero if one or more errors were encountered

parent e46d55d1
......@@ -37,11 +37,18 @@ if __name__ == "__main__":
from portmod.yaml import yaml_load, Person, Group
from portmod.main import pybuild_validate, pybuild_manifest
from portmod.repo.metadata import get_categories, get_repo_root, license_exists
from portmod.log import err
import portmod.log as log
from portmod.repo.list import read_list
repo_root = get_repo_root(os.getcwd())
error = False
def err(string: str):
global error
error = True
if repo_root is None:
"Cannot find repository for the current directory. "
......@@ -158,3 +165,6 @@ if __name__ == "__main__":
# TODO: check that files in repo also occur in the manifest
# Check that distfiles occur in the manifest
if error:
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment