don't remove patches variant
Patches variant needs to stay on the spec even if we also have resources. Signed-off-by: Todd Gamblin <tgamblin@llnl.gov>
This commit is contained in:
parent
b8ecccbde9
commit
d5f4c69076
@ -2173,10 +2173,7 @@ def to_node_dict(self, hash=ht.dag_hash):
|
||||
if self.namespace:
|
||||
d["namespace"] = self.namespace
|
||||
|
||||
# Get all variants *except* for patches. Patches are included in "artifacts" below.
|
||||
params = syaml.syaml_dict(
|
||||
sorted(v.yaml_entry() for _, v in self.variants.items() if v.name != "patches")
|
||||
)
|
||||
params = syaml.syaml_dict(sorted(v.yaml_entry() for _, v in self.variants.items()))
|
||||
|
||||
# Only need the string compiler flag for yaml file
|
||||
params.update(
|
||||
@ -2201,6 +2198,11 @@ def to_node_dict(self, hash=ht.dag_hash):
|
||||
if not self._concrete:
|
||||
d["concrete"] = False
|
||||
|
||||
if "patches" in self.variants:
|
||||
variant = self.variants["patches"]
|
||||
if hasattr(variant, "_patches_in_order_of_appearance"):
|
||||
d["patches"] = variant._patches_in_order_of_appearance
|
||||
|
||||
if self._concrete and hash.package_hash:
|
||||
# We use the `_package_hash` attribute here instead of `self.package_hash()`
|
||||
# because `_package_hash` is *always* assigned at concretization time. If
|
||||
|
Loading…
Reference in New Issue
Block a user