Modify Spec.short_spec to remove compiler info

This commit is contained in:
Massimiliano Culpo
2025-01-08 09:13:21 +01:00
parent 040b827dad
commit 5260acc53b

View File

@@ -2116,9 +2116,7 @@ def long_spec(self):
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):