diff options
author | Peter Josef Scheibel <scheibel1@llnl.gov> | 2019-11-26 19:23:38 -0800 |
---|---|---|
committer | Todd Gamblin <tgamblin@llnl.gov> | 2019-12-23 23:03:09 -0800 |
commit | a69b3c85b01075703dc480b490e894ee14d00125 (patch) | |
tree | 6c89c2e90a948f1a826e883b29bff4338ecf1b9a | |
parent | 98b498c671fe4cec0c3b1ecfc09fa959faa713bd (diff) | |
download | spack-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.
-rw-r--r-- | lib/spack/spack/stage.py | 1 |
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) |