summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam James <sam@gentoo.org>2023-07-31 13:04:07 +0100
committerSam James <sam@gentoo.org>2023-07-31 13:04:07 +0100
commit03b9c8a35924f482ff41b1418c9ab13979fd1c99 (patch)
treec59354fbd6dc3b25a2ec93513387f284533922fe /sys-cluster
parentdev-java/asm: Stabilize 9.5 arm64, #911514 (diff)
downloadgentoo-03b9c8a35924f482ff41b1418c9ab13979fd1c99.tar.gz
gentoo-03b9c8a35924f482ff41b1418c9ab13979fd1c99.tar.bz2
gentoo-03b9c8a35924f482ff41b1418c9ab13979fd1c99.zip
sys-cluster/glusterfs: fix bash-completion installation w/o bash-completion installed
Closes: https://bugs.gentoo.org/911523 Signed-off-by: Sam James <sam@gentoo.org>
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 \