add back patch level
Signed-off-by: Todd Gamblin <tgamblin@llnl.gov>
This commit is contained in:
parent
7b4aa6739f
commit
970f18cd45
@ -1807,7 +1807,7 @@ def artifact_hashes(self, content=None):
|
||||
tty.debug(message.format(s=self))
|
||||
|
||||
for resource in self._get_needed_resources():
|
||||
sources.append(resource.fetcher.spec_attrs())
|
||||
sources.append(resource.fetcher.source_provenance())
|
||||
|
||||
if sources:
|
||||
hashes["sources"] = sources
|
||||
@ -1817,7 +1817,9 @@ def artifact_hashes(self, content=None):
|
||||
# We check spec._patches_assigned instead of spec.concrete because
|
||||
# we have to call package_hash *before* marking specs concrete
|
||||
if self.spec._patches_assigned():
|
||||
hashes["patches"] = [p.sha256 for p in self.spec.patches]
|
||||
hashes["patches"] = [
|
||||
{"sha256": patch.sha256, "level": patch.level} for patch in self.spec.patches
|
||||
]
|
||||
|
||||
# package.py contents
|
||||
hashes["package_hash"] = ph.package_hash(self.spec, source=content)
|
||||
|
Loading…
Reference in New Issue
Block a user