From cb4312996ce61d7a02da4cce8f4ae6f98b4beb41 Mon Sep 17 00:00:00 2001 From: Harmen Stoppels Date: Mon, 22 Jan 2024 15:44:13 +0100 Subject: [PATCH] repo.py: pass package name not fully qualified package name (#42217) --- lib/spack/spack/repo.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/spack/spack/repo.py b/lib/spack/spack/repo.py index 5918454005..7c9ba6a5ca 100644 --- a/lib/spack/spack/repo.py +++ b/lib/spack/spack/repo.py @@ -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)