summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorPeter Josef Scheibel <scheibel1@llnl.gov>2019-11-26 19:23:38 -0800
committerTodd Gamblin <tgamblin@llnl.gov>2019-12-23 23:03:09 -0800
commita69b3c85b01075703dc480b490e894ee14d00125 (patch)
tree6c89c2e90a948f1a826e883b29bff4338ecf1b9a /lib
parent98b498c671fe4cec0c3b1ecfc09fa959faa713bd (diff)
downloadspack-a69b3c85b01075703dc480b490e894ee14d00125.tar.gz
spack-a69b3c85b01075703dc480b490e894ee14d00125.tar.bz2
spack-a69b3c85b01075703dc480b490e894ee14d00125.tar.xz
spack-a69b3c85b01075703dc480b490e894ee14d00125.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.
Diffstat (limited to 'lib')
-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 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)