Add missing info to diagnostic for circular provides (#32027)
This commit is contained in:
parent
76d8376fea
commit
46c8962e91
1 changed files with 1 additions and 1 deletions
|
@ -513,7 +513,7 @@ def _execute_provides(pkg):
|
|||
for string in specs:
|
||||
for provided_spec in spack.spec.parse(string):
|
||||
if pkg.name == provided_spec.name:
|
||||
raise CircularReferenceError("Package '%s' cannot provide itself.")
|
||||
raise CircularReferenceError("Package '%s' cannot provide itself." % pkg.name)
|
||||
|
||||
if provided_spec not in pkg.provided:
|
||||
pkg.provided[provided_spec] = set()
|
||||
|
|
Loading…
Reference in a new issue