summaryrefslogtreecommitdiff
path: root/morphlib/buildcommand.py
diff options
context:
space:
mode:
Diffstat (limited to 'morphlib/buildcommand.py')
-rw-r--r--morphlib/buildcommand.py10
1 files changed, 2 insertions, 8 deletions
diff --git a/morphlib/buildcommand.py b/morphlib/buildcommand.py
index 1fce2950..ed131c74 100644
--- a/morphlib/buildcommand.py
+++ b/morphlib/buildcommand.py
@@ -288,7 +288,8 @@ class BuildCommand(object):
def maybe_cache_artifacts_locally(self, source):
try:
- self.cache_artifacts_locally([source])
+ self.rac.get_artifacts_for_source(
+ source, self.lac, status_cb=self.app.status)
except morphlib.remoteartifactcache.GetError as e:
# It's important to not hide the error, as the problem may be
# something unexpected like a loose network cable.
@@ -341,7 +342,6 @@ class BuildCommand(object):
self.fetch_sources(source)
deps = morphlib.artifact.find_all_deps(source.artifacts.values())
- self.cache_artifacts_locally(deps)
use_chroot = False
setup_mounts = False
@@ -391,12 +391,6 @@ class BuildCommand(object):
source.repo = self.lrc.get_updated_repo(repo_name, ref=source.sha1)
self.lrc.ensure_submodules(source.repo, source.sha1)
- def cache_artifacts_locally(self, sources):
- '''Get artifacts missing from local cache from remote cache.'''
-
- self.rac.get_artifacts_for_sources(
- sources, self.lac, status_cb=self.app.status)
-
def create_staging_area(self, build_env, use_chroot=True, extra_env={},
extra_path=[]):
'''Create the staging area for building a single artifact.'''