Package source ID cannot be determined when the url can't be extrapolated for older version. (#14237)
This commit is contained in:
parent
d0523ca087
commit
7badd69d1e
@ -1262,7 +1262,10 @@ def content_hash(self, content=None):
|
|||||||
raise spack.error.SpackError(err_msg)
|
raise spack.error.SpackError(err_msg)
|
||||||
|
|
||||||
hash_content = list()
|
hash_content = list()
|
||||||
|
try:
|
||||||
source_id = fs.for_package_version(self, self.version).source_id()
|
source_id = fs.for_package_version(self, self.version).source_id()
|
||||||
|
except fs.ExtrapolationError:
|
||||||
|
source_id = None
|
||||||
if not source_id:
|
if not source_id:
|
||||||
# TODO? in cases where a digest or source_id isn't available,
|
# TODO? in cases where a digest or source_id isn't available,
|
||||||
# should this attempt to download the source and set one? This
|
# should this attempt to download the source and set one? This
|
||||||
|
Loading…
Reference in New Issue
Block a user