diff options
author | Patrick Gartung <gartung@fnal.gov> | 2020-01-27 20:10:01 -0600 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-27 20:10:01 -0600 |
commit | 7badd69d1e652e470eb2b856db97402b9b072d0e (patch) | |
tree | 2afa31e83d849bb08bbc32dfdfb6e42fdfdbaad9 | |
parent | d0523ca0871dd9e232136f6a0bfdcdef3ea9424e (diff) | |
download | spack-7badd69d1e652e470eb2b856db97402b9b072d0e.tar.gz spack-7badd69d1e652e470eb2b856db97402b9b072d0e.tar.bz2 spack-7badd69d1e652e470eb2b856db97402b9b072d0e.tar.xz spack-7badd69d1e652e470eb2b856db97402b9b072d0e.zip |
Package source ID cannot be determined when the url can't be extrapolated for older version. (#14237)
-rw-r--r-- | lib/spack/spack/package.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/lib/spack/spack/package.py b/lib/spack/spack/package.py index cc13017f4c..6856e3a397 100644 --- a/lib/spack/spack/package.py +++ b/lib/spack/spack/package.py @@ -1262,7 +1262,10 @@ class PackageBase(with_metaclass(PackageMeta, PackageViewMixin, object)): raise spack.error.SpackError(err_msg) hash_content = list() - source_id = fs.for_package_version(self, self.version).source_id() + try: + source_id = fs.for_package_version(self, self.version).source_id() + except fs.ExtrapolationError: + source_id = None if not source_id: # TODO? in cases where a digest or source_id isn't available, # should this attempt to download the source and set one? This |