Mirrors: perform checksum of fetched sources
Since cache_mirror does the fetch itself, it also needs to do the checksum itself if it wants to verify that the source stored in the mirror is valid. Note that this isn't strictly required because fetching (including from mirrors) always separately verifies the checksum.
This commit is contained in:
parent
98b498c671
commit
a69b3c85b0
@ -500,6 +500,7 @@ def cache_mirror(self, stats):
|
|||||||
stats.already_existed(absolute_storage_path)
|
stats.already_existed(absolute_storage_path)
|
||||||
else:
|
else:
|
||||||
self.fetch()
|
self.fetch()
|
||||||
|
self.check()
|
||||||
spack.caches.mirror_cache.store(
|
spack.caches.mirror_cache.store(
|
||||||
self.fetcher, self.mirror_paths.storage_path)
|
self.fetcher, self.mirror_paths.storage_path)
|
||||||
stats.added(absolute_storage_path)
|
stats.added(absolute_storage_path)
|
||||||
|
Loading…
Reference in New Issue
Block a user