From 754dd6eb1fcf933f446c9288f74383c8feab9c31 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 d730fd63b4..dd381fd402 100644 --- a/lib/spack/spack/stage.py +++ b/lib/spack/spack/stage.py @@ -502,6 +502,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-70-g09d2