summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorValentin Finini <valentin.finini@cysec.systems>2020-01-03 16:21:01 +0100
committerGeorgy Yakovlev <gyakovlev@gentoo.org>2020-01-03 16:30:18 -0800
commit371398bf74fa53a6ba958e029aa966c963072d58 (patch)
tree3ab18643559bcb86b4b711bd057b6c04674cb149 /eclass/cargo.eclass
parentdev-util/idea-community: Prevent automatic updates (diff)
downloadgentoo-371398bf74fa53a6ba958e029aa966c963072d58.tar.gz
gentoo-371398bf74fa53a6ba958e029aa966c963072d58.tar.bz2
gentoo-371398bf74fa53a6ba958e029aa966c963072d58.zip
cargo.eclass: Delete /usr/.crates2.json in cargo_src_install
Signed-off-by: Valentin Finini <farenjihn@gmail.com> Closes: https://github.com/gentoo/gentoo/pull/14231 Signed-off-by: Georgy Yakovlev <gyakovlev@gentoo.org>
Diffstat (limited to 'eclass/cargo.eclass')
-rw-r--r--eclass/cargo.eclass1
1 files changed, 1 insertions, 0 deletions
diff --git a/eclass/cargo.eclass b/eclass/cargo.eclass
index f2a726d51672..b1fb237e1d25 100644
--- a/eclass/cargo.eclass
+++ b/eclass/cargo.eclass
@@ -179,6 +179,7 @@ cargo_src_install() {
--root="${ED}/usr" $(usex debug --debug "") "$@" \
|| die "cargo install failed"
rm -f "${ED}/usr/.crates.toml"
+ rm -f "${ED}/usr/.crates2.json"
[ -d "${S}/man" ] && doman "${S}/man" || return 0
}