Skip to content

Commit

Permalink
skip dependencies of meta-packages
Browse files Browse the repository at this point in the history
meta-packages would transform exec_depends to test_depends in strict mode
  • Loading branch information
mathias-luedtke committed Jul 13, 2017
1 parent cfa5962 commit 6f168e4
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions industrial_ci/src/deps.py
Expand Up @@ -60,13 +60,14 @@ def get_target_repo_path(): # lazy read of TARGET_REPO_PATH

class Dependencies(object):
def __init__(self, p=None):
if p is None:
if p is None or p.is_metapackage():
self.build_deps = set()
self.export_deps = set()
self.test_deps = set()
self.exec_deps = set()
self.build_keys = set()
self.export_keys = set()
# special case for meta-packages: export exec_deps to get them skipped by default
self.export_keys = set() if p is None else set(p.exec_depends)
self.test_keys = set()
else:
self.build_deps = set(d.name for d in chain(p.build_depends, p.buildtool_depends)) & workspace_pkgs
Expand Down

0 comments on commit 6f168e4

Please sign in to comment.