external: do not fail with no remote if cache is available

This commit is contained in:
Alexander Schepanovski
2020-01-19 21:39:32 +07:00
parent ee022eada0
commit eb97e0b393
+4 -1
View File
@@ -73,7 +73,10 @@ class ExternalRepo(Repo):
def _pull_cached(self, out, to_info): def _pull_cached(self, out, to_info):
with self.state: with self.state:
self.cloud.pull(out.get_used_cache()) # Only pull unless all needed cache is present
if out.changed_cache():
self.cloud.pull(out.get_used_cache())
out.path_info = to_info out.path_info = to_info
failed = out.checkout() failed = out.checkout()
# This might happen when pull haven't really pulled all the files # This might happen when pull haven't really pulled all the files