diff options
author | Richard Maw <richard.maw@gmail.com> | 2014-10-01 22:11:42 +0000 |
---|---|---|
committer | Richard Maw <richard.maw@gmail.com> | 2014-10-08 12:13:56 +0000 |
commit | 2689f61a305ec576f229f1d9f0929d7eb11d1acc (patch) | |
tree | 85e4e0259360d8f824b1ee775f0511f939284d50 /morphlib/plugins/list_artifacts_plugin.py | |
parent | f814cf6c4a8cae6b5a28349897626d42f5fd9f9e (diff) | |
download | morph-2689f61a305ec576f229f1d9f0929d7eb11d1acc.tar.gz |
Fix issues with distbuild caused by moving to building per-source
Diffstat (limited to 'morphlib/plugins/list_artifacts_plugin.py')
-rw-r--r-- | morphlib/plugins/list_artifacts_plugin.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/morphlib/plugins/list_artifacts_plugin.py b/morphlib/plugins/list_artifacts_plugin.py index 8074206b..61c8d160 100644 --- a/morphlib/plugins/list_artifacts_plugin.py +++ b/morphlib/plugins/list_artifacts_plugin.py @@ -105,11 +105,13 @@ class ListArtifactsPlugin(cliapp.Plugin): self.app.settings, system_artifact.source.morphology['arch']) ckc = morphlib.cachekeycomputer.CacheKeyComputer(build_env) - artifact_files = set() - for artifact in system_artifact.walk(): + for source in set(a.source for a in system_artifact.walk()): artifact.cache_key = ckc.compute_key(artifact) artifact.cache_id = ckc.get_cache_id(artifact) + artifact_files = set() + for artifact in system_artifact.walk(): + artifact_files.add(artifact.basename()) if artifact.source.morphology.needs_artifact_metadata_cached: |