summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'dev-lang/rust')
-rw-r--r--dev-lang/rust/rust-1.39.0.ebuild4
1 files changed, 3 insertions, 1 deletions
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