cache: use get_file_hash instead of get_hash (#4514)

This is what we've been doing before. No need to try to pull it up from
the state db, as this is a clearly newly generated file that will get
deleted.
This commit is contained in:
Ruslan Kuprieiev
2020-09-02 03:37:17 +03:00
committed by GitHub
parent 9887de6a65
commit 981dd401fa
+1 -1
View File
@@ -273,7 +273,7 @@ class CloudCache:
to_info = self.tree.path_info / tmp_fname("")
self.tree.upload(from_info, to_info, no_progress_bar=True)
hash_info = self.tree.get_hash(to_info)
hash_info = self.tree.get_file_hash(to_info)
hash_info.value += self.tree.CHECKSUM_DIR_SUFFIX
hash_info.dir_info = dir_info