build-style/cargo.sh: don't use post_install() for leftover removal

This commit is contained in:
Daniel Eyßer 2020-04-12 17:47:38 +02:00 committed by Juan RP
parent 80c5bd80d5
commit ef4596b546

View file

@ -20,9 +20,7 @@ do_install() {
${make_cmd} install --target ${RUST_TARGET} --root="${DESTDIR}/usr" \
--locked ${configure_args} ${make_install_args}
}
post_install() {
rm -f "${DESTDIR}"/usr/.crates.toml
rm -f "${DESTDIR}"/usr/.crates2.json
}