summaryrefslogtreecommitdiff
path: root/morphlib/plugins/show_dependencies_plugin.py
diff options
context:
space:
mode:
Diffstat (limited to 'morphlib/plugins/show_dependencies_plugin.py')
-rw-r--r--morphlib/plugins/show_dependencies_plugin.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/morphlib/plugins/show_dependencies_plugin.py b/morphlib/plugins/show_dependencies_plugin.py
index 856a9361..9fdb7c60 100644
--- a/morphlib/plugins/show_dependencies_plugin.py
+++ b/morphlib/plugins/show_dependencies_plugin.py
@@ -66,9 +66,10 @@ class ShowDependenciesPlugin(cliapp.Plugin):
self.app.output.write('dependency graph for %s|%s|%s:\n' %
(repo, ref, morph))
- artifact = build_command.get_artifact_object(repo, ref, filename)
+ srcpool = build_command.create_source_pool(repo, ref, filename)
+ root_artifact = build_command.resolve_artifacts(srcpool)
- for artifact in reversed(artifact.walk()):
+ for artifact in reversed(root_artifact.walk()):
self.app.output.write(' %s\n' % artifact)
for dependency in sorted(artifact.dependencies, key=str):
self.app.output.write(' -> %s\n' % dependency)