diff options
author | Peter Scheibel <scheibel1@llnl.gov> | 2016-03-18 17:00:13 -0700 |
---|---|---|
committer | Peter Scheibel <scheibel1@llnl.gov> | 2016-03-18 17:00:13 -0700 |
commit | fd067dd8b888ac4c2cc6cacec44d2ba978b04e8a (patch) | |
tree | 355d1f870589c37397b91b7d40e171fc73a518d3 /lib | |
parent | ac7323118e9c3ddfc7b27992e545e59de2f32c7f (diff) | |
download | spack-fd067dd8b888ac4c2cc6cacec44d2ba978b04e8a.tar.gz spack-fd067dd8b888ac4c2cc6cacec44d2ba978b04e8a.tar.bz2 spack-fd067dd8b888ac4c2cc6cacec44d2ba978b04e8a.tar.xz spack-fd067dd8b888ac4c2cc6cacec44d2ba978b04e8a.zip |
since only archives with checksums can be retrieved from the cache, make sure that an archive without a checksum isnt placed there (this wouldn't cause an error but does waste space and might be confusing)
Diffstat (limited to 'lib')
-rw-r--r-- | lib/spack/spack/fetch_strategy.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/spack/spack/fetch_strategy.py b/lib/spack/spack/fetch_strategy.py index 73083a0f5a..27fb38b7a6 100644 --- a/lib/spack/spack/fetch_strategy.py +++ b/lib/spack/spack/fetch_strategy.py @@ -216,7 +216,7 @@ class URLFetchStrategy(FetchStrategy): if not self.archive_file: raise FailedDownloadError(self.url) - else: + elif self.digest: shutil.copy(self.archive_file, spack.cache_path) |