summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Josef Scheibel <scheibel1@llnl.gov>2019-11-26 19:23:38 -0800
committerMassimiliano Culpo <massimiliano.culpo@gmail.com>2019-12-13 08:38:50 +0100
commit754dd6eb1fcf933f446c9288f74383c8feab9c31 (patch)
tree4b939765cf969ad679f25f43243cbdaeb54b1aec
parentb2cc50aa6ab1cfb36ba618dca8849a304011a4b2 (diff)
downloadspack-754dd6eb1fcf933f446c9288f74383c8feab9c31.tar.gz
spack-754dd6eb1fcf933f446c9288f74383c8feab9c31.tar.bz2
spack-754dd6eb1fcf933f446c9288f74383c8feab9c31.tar.xz
spack-754dd6eb1fcf933f446c9288f74383c8feab9c31.zip
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.
-rw-r--r--lib/spack/spack/stage.py1
1 files changed, 1 insertions, 0 deletions
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)