summaryrefslogtreecommitdiff
path: root/morphlib/plugins/list_artifacts_plugin.py
diff options
context:
space:
mode:
authorSam Thursfield <sam.thursfield@codethink.co.uk>2014-10-23 15:16:07 +0100
committerSam Thursfield <sam.thursfield@codethink.co.uk>2014-11-10 12:31:03 +0000
commit2a9c29502a76a54aba3cc92c6e617abbe41ba1ee (patch)
tree3232e99d32eb4a7263b84171f4cc18575aa3fa24 /morphlib/plugins/list_artifacts_plugin.py
parent8f47d014bd8946acc67e6fd291a91028ba6c6a08 (diff)
downloadmorph-2a9c29502a76a54aba3cc92c6e617abbe41ba1ee.tar.gz
Move create_source_pool code into new 'sourceresolver' module
This code is an essential part of 'morph build'. It's quite complex and really shouldn't be mixed in with the base Application class. Given a dedicated class we can store some state in the object and avoid functions with seven parameters, too.
Diffstat (limited to 'morphlib/plugins/list_artifacts_plugin.py')
-rw-r--r--morphlib/plugins/list_artifacts_plugin.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/morphlib/plugins/list_artifacts_plugin.py b/morphlib/plugins/list_artifacts_plugin.py
index 0f14a579..713473ac 100644
--- a/morphlib/plugins/list_artifacts_plugin.py
+++ b/morphlib/plugins/list_artifacts_plugin.py
@@ -84,8 +84,10 @@ class ListArtifactsPlugin(cliapp.Plugin):
self.app.status(
msg='Creating source pool for %s' % system_filename, chatty=True)
- source_pool = self.app.create_source_pool(
- self.lrc, self.rrc, repo, ref, system_filename)
+ source_pool = morphlib.SourceResolver.create_source_pool(
+ self.lrc, self.rrc, repo, ref, system_filename,
+ update_repos = not self.app.settings['no-git-update'],
+ status_cb=self.app.status)
self.app.status(
msg='Resolving artifacts for %s' % system_filename, chatty=True)