summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'sys-cluster')
-rw-r--r--sys-cluster/glusterfs/glusterfs-11.0.ebuild8
1 files changed, 7 insertions, 1 deletions
diff --git a/sys-cluster/glusterfs/glusterfs-11.0.ebuild b/sys-cluster/glusterfs/glusterfs-11.0.ebuild
index 272ca69c012c..eb29d14d963a 100644
--- a/sys-cluster/glusterfs/glusterfs-11.0.ebuild
+++ b/sys-cluster/glusterfs/glusterfs-11.0.ebuild
@@ -126,7 +126,13 @@ src_install() {
local bashcompdir=$(get_bashcompdir)
bashcompdir="${bashcompdir}" default
- mv "${ED}/${bashcompdir}/gluster.bash" "${ED}/${bashcompdir}/gluster" || die
+ # 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
rm \
"${ED}"/etc/glusterfs/glusterfs-{georep-,}logrotate \