diff options
author | Richard Maw <richard.maw@gmail.com> | 2014-09-10 10:41:53 +0000 |
---|---|---|
committer | Richard Maw <richard.maw@gmail.com> | 2014-09-19 12:43:25 +0000 |
commit | df9e5b5ade504c5de34ec880e8c2c8172aa23c57 (patch) | |
tree | e59ec0356bee5336080ceefc02cfcd3ffc03572d /morphlib | |
parent | 8184edabc5999ecb43e49a4ef03f73e4270e5347 (diff) | |
download | morph-df9e5b5ade504c5de34ec880e8c2c8172aa23c57.tar.gz |
Rename BuildCommand.get_sources to fetch_sources
There's other methods called get_sources in other modules, and
fetch_sources explains more about what it does in the context.
Diffstat (limited to 'morphlib')
-rw-r--r-- | morphlib/buildcommand.py | 4 | ||||
-rw-r--r-- | morphlib/plugins/cross-bootstrap_plugin.py | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/morphlib/buildcommand.py b/morphlib/buildcommand.py index 1cb0c4d9..352b43d2 100644 --- a/morphlib/buildcommand.py +++ b/morphlib/buildcommand.py @@ -312,7 +312,7 @@ class BuildCommand(object): name=artifact.name, kind=artifact.source.morphology['kind']) - self.get_sources(artifact) + self.fetch_sources(artifact) deps = self.get_recursive_deps(artifact) self.cache_artifacts_locally(deps) @@ -353,7 +353,7 @@ class BuildCommand(object): def get_recursive_deps(self, artifact): return artifact.walk()[:-1] - def get_sources(self, artifact): + def fetch_sources(self, artifact): '''Update the local git repository cache with the sources.''' repo_name = artifact.source.repo_name diff --git a/morphlib/plugins/cross-bootstrap_plugin.py b/morphlib/plugins/cross-bootstrap_plugin.py index 0c3e3a4a..26637bd1 100644 --- a/morphlib/plugins/cross-bootstrap_plugin.py +++ b/morphlib/plugins/cross-bootstrap_plugin.py @@ -303,7 +303,7 @@ class CrossBootstrapPlugin(cliapp.Plugin): build_command.cache_or_build_artifact(a, build_env) for i, a in enumerate(native_chunks): - build_command.get_sources(a) + build_command.fetch_sources(a) # Install those to the output tarball ... self.app.status(msg='Building final bootstrap system image') |