summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'sys-cluster/glusterfs/glusterfs-11.0.ebuild')
-rw-r--r--sys-cluster/glusterfs/glusterfs-11.0.ebuild15
1 files changed, 5 insertions, 10 deletions
diff --git a/sys-cluster/glusterfs/glusterfs-11.0.ebuild b/sys-cluster/glusterfs/glusterfs-11.0.ebuild
index eb29d14d963a..d20ce8ba2b97 100644
--- a/sys-cluster/glusterfs/glusterfs-11.0.ebuild
+++ b/sys-cluster/glusterfs/glusterfs-11.0.ebuild
@@ -123,16 +123,11 @@ src_test() {
}
src_install() {
- local bashcompdir=$(get_bashcompdir)
- bashcompdir="${bashcompdir}" default
-
- # XXX: Quick hack to fix bug #911523
- if [[ -f "${ED}"/${bashcompdir}/gluster.bash ]] ; then
- mv "${ED}/${bashcompdir}/gluster.bash" "${ED}/${bashcompdir}/gluster" || die
- else
- newbashcomp "${ED}"/etc/bash_completion.d/gluster.bash ${PN}
- rm -rf "${ED}"/etc/bash_completion.d || die
- fi
+ default
+
+ # Path changes based on whether app-shells/bash-completion is installed, bug #911523
+ rm -rf "${ED}"/etc/bash_completion.d || die
+ newbashcomp extras/command-completion/gluster.bash ${PN}
rm \
"${ED}"/etc/glusterfs/glusterfs-{georep-,}logrotate \