spack info: use spec fullname (#45753)

This commit is contained in:
Greg Becker 2024-08-14 15:00:00 -07:00 committed by GitHub
parent 44ecea3813
commit f42486b684
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -502,7 +502,7 @@ def print_licenses(pkg, args):
def info(parser, args): def info(parser, args):
spec = spack.spec.Spec(args.package) spec = spack.spec.Spec(args.package)
pkg_cls = spack.repo.PATH.get_pkg_class(spec.name) pkg_cls = spack.repo.PATH.get_pkg_class(spec.fullname)
pkg = pkg_cls(spec) pkg = pkg_cls(spec)
# Output core package information # Output core package information