From f8df5c6825acb04b95ee65a22c4370cc7011fe3a Mon Sep 17 00:00:00 2001 From: Jan Lindemann Date: Fri, 27 Dec 2019 14:43:29 +0000 Subject: [PATCH] projects.py: Make dep flavour "build" a superset of "run" If P1 build-needs P2, make it run-need P2, too, since with the current dependency resolution algorithm, this also adds everything needed to _run_ P2. Which is the only thing this commit is after. It actually does too much, and enables P1 to run, too, at least WRT P2. But that's the easiest way to resolve the problem for now. Signed-off-by: Jan Lindemann --- scripts/projects.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/projects.py b/scripts/projects.py index 1bb21599..846305d8 100644 --- a/scripts/projects.py +++ b/scripts/projects.py @@ -740,6 +740,9 @@ class Projects(object): args = parser.parse_args(args_) modules = args.module flavours = args.flavours.split() + if 'build' in flavours and not 'run' in flavours: + # TODO: This adds too much. Only the run dependencies of the build dependencies would be needed. + flavours.append('run') self.debug("flavours = " + args.flavours) deps = self.get_modules_from_project_txt(modules, ['pkg.requires.jw'], flavours, scope = 2, add_self=True, names_only=True)