repo.py: pass package name not fully qualified package name (#42217)

This commit is contained in:
Harmen Stoppels 2024-01-22 15:44:13 +01:00 committed by Massimiliano Culpo
parent b107de072b
commit cb4312996c

View file

@ -490,7 +490,7 @@ def read(self, stream):
self.index = spack.tag.TagIndex.from_json(stream, self.repository)
def update(self, pkg_fullname):
self.index.update_package(pkg_fullname)
self.index.update_package(pkg_fullname.split(".")[-1])
def write(self, stream):
self.index.to_json(stream)