From: Georgy Yakovlev Date: Fri, 13 Dec 2019 19:56:47 +0000 (-0800) Subject: dev-lang/rust: fix completion file removal X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=04b60e2a0821f5fff13d05d8b6fc05ea7cc697d1;p=gentoo.git 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 --- 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