summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam Thursfield <sam.thursfield@codethink.co.uk>2015-06-23 14:57:49 +0000
committerSam Thursfield <sam.thursfield@codethink.co.uk>2015-06-24 11:09:11 +0100
commita343a885e0f7dc34f741e781045fd14e91695b44 (patch)
tree5aa44c8323855a5834b44e80b204d0bc1926bb41
parentf8fbffa2e04182e2f7bc0f64720f7ba925eab333 (diff)
downloadmorph-a343a885e0f7dc34f741e781045fd14e91695b44.tar.gz
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
-rw-r--r--distbuild/build_controller.py2
1 files changed, 1 insertions, 1 deletions
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