commit:     175b668aca58a84bde399f213014738b1fee40d5
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sun Apr 28 06:12:19 2019 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sun Apr 28 08:42:00 2019 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=175b668a

app-shells/bash-completion: Strip FreeBSD completions on non-fbsd

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>

 app-shells/bash-completion/bash-completion-9999.ebuild | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/app-shells/bash-completion/bash-completion-9999.ebuild 
b/app-shells/bash-completion/bash-completion-9999.ebuild
index 73e95569c3b..cd39105748b 100644
--- a/app-shells/bash-completion/bash-completion-9999.ebuild
+++ b/app-shells/bash-completion/bash-completion-9999.ebuild
@@ -52,6 +52,12 @@ strip_completions() {
                # Now-dead symlinks to deprecated completions
                hd ncal
        )
+       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