commit:     eff4986d8bd2ee868edf18192102cc86262c1fdd
Author:     Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
AuthorDate: Sat Jul  6 17:39:18 2024 +0000
Commit:     Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
CommitDate: Sat Jul  6 17:40:16 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=eff4986d

app-shells/bash-completion: fix live ebuild

Bug: https://bugs.gentoo.org/935658
Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org>

 .../bash-completion/bash-completion-9999.ebuild     | 21 ++-------------------
 1 file changed, 2 insertions(+), 19 deletions(-)

diff --git a/app-shells/bash-completion/bash-completion-9999.ebuild 
b/app-shells/bash-completion/bash-completion-9999.ebuild
index 0cb1ec461db8..ab48b5fd6c59 100644
--- a/app-shells/bash-completion/bash-completion-9999.ebuild
+++ b/app-shells/bash-completion/bash-completion-9999.ebuild
@@ -3,7 +3,7 @@
 
 EAPI=8
 
-PYTHON_COMPAT=( python3_{10..12} )
+PYTHON_COMPAT=( python3_{10..13} )
 
 inherit autotools git-r3 python-any-r1
 
@@ -56,26 +56,9 @@ strip_completions() {
 
                # Now-dead symlinks to deprecated completions
                hd ncal
-
-               # FreeBSD
-               freebsd-update kldload kldunload portinstall portsnap
-               pkg_deinstall pkg_delete pkg_info
-
-               # For GNU mailman, which isn't packaged. If mailman isn't 
installed,
-               # it triggers a QA warning.
        )
 
-       if [[ ${CHOST} = *solaris* ]]; then
-               # Triggers QA warning since it only defines a completion on 
Solaris,
-               # to avoid defining a bad one on macOS.
-               strip_completions+=(pkgutil)
-       fi
-
-       local file
-       for file in "${strip_completions[@]}"; do
-               rm "${ED}"/usr/share/bash-completion/completions/${file} ||
-                       die "stripping ${file} failed"
-       done
+       rm -v 
"${strip_completions[@]/#/${ED}/usr/share/bash-completion/completions/}" || die
 
        # remove deprecated completions (moved to other packages)
        rm "${ED}"/usr/share/bash-completion/completions/_* || die

Reply via email to