Modify Spec.short_spec to remove compiler info

This commit is contained in:
Massimiliano Culpo 2025-01-08 09:13:21 +01:00
parent b6ce34607e
commit df464681bf
No known key found for this signature in database
GPG Key ID: 3E52BB992233066C

View File

@ -2049,9 +2049,7 @@ def traverse_edges(
def short_spec(self):
"""Returns a version of the spec with the dependencies hashed
instead of completely enumerated."""
spec_format = "{name}{@version}{%compiler.name}{@compiler.version}"
spec_format += "{variants}{ arch=architecture}{/hash:7}"
return self.format(spec_format)
return self.format("{name}{@version} {variants}{ arch=architecture}{/hash:7}")
@property
def cshort_spec(self):