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)

This commit is contained in:
Peter Scheibel 2016-03-18 17:00:13 -07:00
parent ac7323118e
commit fd067dd8b8

View file

@ -216,7 +216,7 @@ def fetch(self):
if not self.archive_file: if not self.archive_file:
raise FailedDownloadError(self.url) raise FailedDownloadError(self.url)
else: elif self.digest:
shutil.copy(self.archive_file, spack.cache_path) shutil.copy(self.archive_file, spack.cache_path)