diff options
author | Lars Wirzenius <lars.wirzenius@codethink.co.uk> | 2013-10-29 11:45:42 +0000 |
---|---|---|
committer | Lars Wirzenius <lars.wirzenius@codethink.co.uk> | 2013-10-29 12:21:45 +0000 |
commit | 479e23084983471de3be33547bf85840c8ad8f45 (patch) | |
tree | d74acb5bcad5311d6468ac42545d939d625ab52d /morphlib/plugins | |
parent | 644d71bae111c7d2f3dc23cdccf68941d66505ff (diff) | |
download | morph-479e23084983471de3be33547bf85840c8ad8f45.tar.gz |
Add --artifact-cache-server and --git-resolve-cache-server
Diffstat (limited to 'morphlib/plugins')
-rw-r--r-- | morphlib/plugins/show_dependencies_plugin.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/morphlib/plugins/show_dependencies_plugin.py b/morphlib/plugins/show_dependencies_plugin.py index 9fdb7c60..c59cf507 100644 --- a/morphlib/plugins/show_dependencies_plugin.py +++ b/morphlib/plugins/show_dependencies_plugin.py @@ -52,9 +52,12 @@ class ShowDependenciesPlugin(cliapp.Plugin): self.app.settings['repo-alias']) lrc = morphlib.localrepocache.LocalRepoCache( self.app, cachedir, repo_resolver, tarball_base_url) - if self.app.settings['cache-server']: + + remote_url = morphlib.util.get_git_resolve_cache_server( + self.app.settings) + if remote_url: rrc = morphlib.remoterepocache.RemoteRepoCache( - self.app.settings['cache-server'], repo_resolver) + remote_url, repo_resolver) else: rrc = None |