fixup 2355eb5c3e
Signed-off-by: Gregory Becker <becker33@llnl.gov>
This commit is contained in:
parent
2c43131aca
commit
e24bd2ef3c
@ -2121,15 +2121,15 @@ def long_spec(self):
|
|||||||
new_name = spack.aliases.BUILTIN_TO_LEGACY_COMPILER.get(current_name, current_name)
|
new_name = spack.aliases.BUILTIN_TO_LEGACY_COMPILER.get(current_name, current_name)
|
||||||
# note: depflag not allowed, currently, on "direct" edges
|
# note: depflag not allowed, currently, on "direct" edges
|
||||||
edge_attributes = ""
|
edge_attributes = ""
|
||||||
if item.virtuals or item.when:
|
if item.virtuals or item.when != Spec():
|
||||||
edge_attributes = item.spec.format("{edge_attributes}") + ""
|
edge_attributes = item.spec.format("{edge_attributes}") + " "
|
||||||
|
|
||||||
parts.append(f"%{edge_attributes}{item.spec.format()}".replace(current_name, new_name))
|
parts.append(f"%{edge_attributes}{item.spec.format()}".replace(current_name, new_name))
|
||||||
for item in sorted(transitive, key=lambda x: x.spec.name):
|
for item in sorted(transitive, key=lambda x: x.spec.name):
|
||||||
# Recurse to attach build deps in order
|
# Recurse to attach build deps in order
|
||||||
edge_attributes = ""
|
edge_attributes = ""
|
||||||
if item.virtuals or item.depflag or item.when:
|
if item.virtuals or item.depflag or item.when != Spec():
|
||||||
edge_attributes = item.spec.format("{edge_attributes}") + ""
|
edge_attributes = item.spec.format("{edge_attributes}") + " "
|
||||||
parts.append(f"^{edge_attributes}{str(item.spec)}")
|
parts.append(f"^{edge_attributes}{str(item.spec)}")
|
||||||
return " ".join(parts).strip()
|
return " ".join(parts).strip()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user