don't refer to source id

Signed-off-by: Todd Gamblin <tgamblin@llnl.gov>
This commit is contained in:
Todd Gamblin 2024-04-30 11:29:04 -07:00
parent e296d19146
commit de62f7fed2
No known key found for this signature in database
GPG Key ID: C16729F1AACF66C6

View File

@ -1798,10 +1798,10 @@ def artifact_hashes(self, content=None):
# if this is a develop spec, say so
from_local_sources = "dev_path" in self.spec.variants
# don't bother setting a source id if none is available, but warn if
# don't bother setting a hash if none is available, but warn if
# it seems like there should be one.
if self.has_code and not self.spec.external and not from_local_sources:
message = "Missing a source id for {s.name}@{s.version}"
message = "Missing a hash for {s.name}@{s.version}"
tty.debug(message.format(s=self))
for resource in self._get_needed_resources():