From 04b60e2a0821f5fff13d05d8b6fc05ea7cc697d1 Mon Sep 17 00:00:00 2001 From: Georgy Yakovlev Date: Fri, 13 Dec 2019 11:56:47 -0800 Subject: [PATCH] dev-lang/rust: fix completion file removal Bug: https://bugs.gentoo.org/689562 Package-Manager: Portage-2.3.79, Repoman-2.3.17 Signed-off-by: Georgy Yakovlev --- dev-lang/rust/rust-1.39.0.ebuild | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/dev-lang/rust/rust-1.39.0.ebuild b/dev-lang/rust/rust-1.39.0.ebuild index f918098e20cf..6f66984bd72b 100644 --- a/dev-lang/rust/rust-1.39.0.ebuild +++ b/dev-lang/rust/rust-1.39.0.ebuild @@ -236,7 +236,9 @@ src_install() { # bug #689562, #689160 rm "${D}/etc/bash_completion.d/cargo" || die - rmdir -p "${D}/etc" || die + pushd "${D}" > /dev/null || die + rmdir -p etc/bash_completion.d || die + popd > /dev/null || die dobashcomp build/tmp/dist/cargo-image/etc/bash_completion.d/cargo mv "${ED}/usr/bin/rustc" "${ED}/usr/bin/rustc-${PV}" || die -- 2.26.2