commit:     1a55476abc9439417dcf61827148f7ac2b05bab6
Author:     James Le Cuirot <chewi <AT> gentoo <DOT> org>
AuthorDate: Thu May  8 19:59:53 2025 +0000
Commit:     Zac Medico <zmedico <AT> gentoo <DOT> org>
CommitDate: Thu May  8 23:45:11 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1a55476a

app-containers/cri-tools: Use the shell-completion eclass for zsh

Signed-off-by: James Le Cuirot <chewi <AT> gentoo.org>
Closes: https://github.com/gentoo/gentoo/pull/41994
Signed-off-by: Zac Medico <zmedico <AT> gentoo.org>

 app-containers/cri-tools/cri-tools-1.33.0.ebuild | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/app-containers/cri-tools/cri-tools-1.33.0.ebuild 
b/app-containers/cri-tools/cri-tools-1.33.0.ebuild
index 36951e2741c7..92307d9fb677 100644
--- a/app-containers/cri-tools/cri-tools-1.33.0.ebuild
+++ b/app-containers/cri-tools/cri-tools-1.33.0.ebuild
@@ -3,7 +3,7 @@
 
 EAPI=8
 
-inherit bash-completion-r1 go-env go-module toolchain-funcs
+inherit go-env go-module shell-completion toolchain-funcs
 
 DESCRIPTION="CLI and validation tools for Kubelet Container Runtime (CRI)"
 HOMEPAGE="https://github.com/kubernetes-sigs/cri-tools";
@@ -33,7 +33,6 @@ src_install() {
 
        if ! tc-is-cross-compiler; then
                newbashcomp crictl.bash crictl
-               insinto /usr/share/zsh/site-functions
-               newins crictl.zsh _crictl
+               newzshcomp crictl.zsh _crictl
        fi
 }

Reply via email to