dvc: remove tree-specific wrappers from cache (#4214)

This helps combat the remote/tree/cache confusion.
This commit is contained in:
Ruslan Kuprieiev
2020-07-16 00:46:19 +03:00
committed by GitHub
parent 76228a2118
commit 1c4a8cf2ca
13 changed files with 68 additions and 85 deletions
+1 -1
View File
@@ -92,7 +92,7 @@ class DataCloud:
def _save_pulled_checksums(self, cache):
for checksum in cache.scheme_keys("local"):
cache_file = self.repo.cache.local.hash_to_path_info(checksum)
cache_file = self.repo.cache.local.tree.hash_to_path_info(checksum)
if self.repo.cache.local.tree.exists(cache_file):
# We can safely save here, as existing corrupted files will
# be removed upon status, while files corrupted during