commit:     c4f726c53b6af6c3dab6a57943dd7a00ab5e937d
Author:     Sam James <sam <AT> gentoo <DOT> org>
AuthorDate: Sat Jun  3 02:15:52 2023 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sat Jun 10 10:23:56 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c4f726c5

app-shells/bash-completion: drop dead prefix targets

Signed-off-by: Sam James <sam <AT> gentoo.org>

 app-shells/bash-completion/bash-completion-2.11.ebuild | 10 ++++------
 app-shells/bash-completion/bash-completion-9999.ebuild | 10 ++++------
 2 files changed, 8 insertions(+), 12 deletions(-)

diff --git a/app-shells/bash-completion/bash-completion-2.11.ebuild 
b/app-shells/bash-completion/bash-completion-2.11.ebuild
index c6323ea788a9..9d1182abc528 100644
--- a/app-shells/bash-completion/bash-completion-2.11.ebuild
+++ b/app-shells/bash-completion/bash-completion-2.11.ebuild
@@ -57,13 +57,11 @@ strip_completions() {
 
                # Now-dead symlinks to deprecated completions
                hd ncal
+
+               # FreeBSD
+               freebsd-update kldload kldunload portinstall portsnap
+               pkg_deinstall pkg_delete pkg_info
        )
-       if [[ ${ARCH} != *-fbsd && ${ARCH} != *-freebsd ]]; then
-               strip_completions+=(
-                       freebsd-update kldload kldunload portinstall portsnap
-                       pkg_deinstall pkg_delete pkg_info
-               )
-       fi
 
        local file
        for file in "${strip_completions[@]}"; do

diff --git a/app-shells/bash-completion/bash-completion-9999.ebuild 
b/app-shells/bash-completion/bash-completion-9999.ebuild
index 8d39bca2b242..7e597f994ebc 100644
--- a/app-shells/bash-completion/bash-completion-9999.ebuild
+++ b/app-shells/bash-completion/bash-completion-9999.ebuild
@@ -51,13 +51,11 @@ strip_completions() {
 
                # Now-dead symlinks to deprecated completions
                hd ncal
+
+               # FreeBSD
+               freebsd-update kldload kldunload portinstall portsnap
+               pkg_deinstall pkg_delete pkg_info
        )
-       if [[ ${ARCH} != *-fbsd && ${ARCH} != *-freebsd ]]; then
-               strip_completions+=(
-                       freebsd-update kldload kldunload portinstall portsnap
-                       pkg_deinstall pkg_delete pkg_info
-               )
-       fi
 
        local file
        for file in "${strip_completions[@]}"; do

Reply via email to