commit: 03b9c8a35924f482ff41b1418c9ab13979fd1c99 Author: Sam James <sam <AT> gentoo <DOT> org> AuthorDate: Mon Jul 31 12:04:07 2023 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Mon Jul 31 12:04:07 2023 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=03b9c8a3
sys-cluster/glusterfs: fix bash-completion installation w/o bash-completion installed Closes: https://bugs.gentoo.org/911523 Signed-off-by: Sam James <sam <AT> gentoo.org> sys-cluster/glusterfs/glusterfs-11.0.ebuild | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) 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 \