From a343a885e0f7dc34f741e781045fd14e91695b44 Mon Sep 17 00:00:00 2001 From: Sam Thursfield Date: Tue, 23 Jun 2015 14:57:49 +0000 Subject: distbuild: Fix partial distbuilding I was getting an error from this command: morph distbuild systems/build-system-x86_64.morph stage2-fhs-dirs Saying this: ERROR: Failed to build git://git.baserock.org/baserock/baserock/definitions 93575a2ceeeda77a5bb8c6121a9cac3edde1afbf systems/build-system-x86_64.morph: Some of the requested components are not in build-system-x86_64-rootfs: stage2-fhs-dirs This patch fixes that issue and makes Morph build up to stage2-fhs-dirs successfully. Change-Id: I61c373272484dcb5dc62f281cae8f21f742c31a9 --- distbuild/build_controller.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/distbuild/build_controller.py b/distbuild/build_controller.py index 8cc817ca..3aa149f8 100644 --- a/distbuild/build_controller.py +++ b/distbuild/build_controller.py @@ -172,7 +172,7 @@ def map_build_graph(artifact, callback, components=[]): def find_artifacts(components, artifact): found = [] for a in artifact.walk(): - if a.name in components: + if a.source_name in components or a.name in components: found.append(a) return found -- cgit v1.2.1