From a69b3c85b01075703dc480b490e894ee14d00125 Mon Sep 17 00:00:00 2001 From: Peter Josef Scheibel Date: Tue, 26 Nov 2019 19:23:38 -0800 Subject: 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. --- lib/spack/spack/stage.py | 1 + 1 file changed, 1 insertion(+) (limited to 'lib') diff --git a/lib/spack/spack/stage.py b/lib/spack/spack/stage.py index e46354d963..ffad242f27 100644 --- a/lib/spack/spack/stage.py +++ b/lib/spack/spack/stage.py @@ -500,6 +500,7 @@ class Stage(object): stats.already_existed(absolute_storage_path) else: self.fetch() + self.check() spack.caches.mirror_cache.store( self.fetcher, self.mirror_paths.storage_path) stats.added(absolute_storage_path) -- cgit v1.2.3-60-g2f50