diff options
author | Tim Harder <radhermit@gmail.com> | 2021-02-08 17:45:09 -0700 |
---|---|---|
committer | Tim Harder <radhermit@gmail.com> | 2021-02-08 17:45:09 -0700 |
commit | d9c44e7402030f7123f65c91e50562326ff9ae96 (patch) | |
tree | 1c229c038f3ff2e7398e1b99d3ccf3b906b09003 /src/pkgcheck/scripts | |
parent | checks: add optional addons/source cache params for init_checks() (diff) | |
download | pkgcheck-d9c44e7402030f7123f65c91e50562326ff9ae96.tar.gz pkgcheck-d9c44e7402030f7123f65c91e50562326ff9ae96.tar.bz2 pkgcheck-d9c44e7402030f7123f65c91e50562326ff9ae96.zip |
Pipeline: generate checkrunners per restriction
Fixes #279.
Diffstat (limited to 'src/pkgcheck/scripts')
-rw-r--r-- | src/pkgcheck/scripts/pkgcheck.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/pkgcheck/scripts/pkgcheck.py b/src/pkgcheck/scripts/pkgcheck.py index 04e20ac7..45f559a2 100644 --- a/src/pkgcheck/scripts/pkgcheck.py +++ b/src/pkgcheck/scripts/pkgcheck.py @@ -354,6 +354,7 @@ def _setup_scan_defaults(parser, namespace): """Re-initialize default namespace settings per arg parsing run.""" namespace.config_checksets = {} namespace.contexts = [] + namespace.pkg_scan = False @scan.bind_pre_parse @@ -499,6 +500,8 @@ def _determine_restrictions(namespace, attr): else: if namespace.cwd in namespace.target_repo: scope, restrict = _path_restrict(namespace.cwd, namespace.target_repo) + if scope == base.package_scope: + namespace.pkg_scan = True else: scope, restrict = base.repo_scope, packages.AlwaysTrue restrictions = [(scope, restrict)] |