diff --git a/common/build-style/cargo.sh b/common/build-style/cargo.sh index dd74485032d..0257a633929 100644 --- a/common/build-style/cargo.sh +++ b/common/build-style/cargo.sh @@ -19,5 +19,6 @@ do_install() { ${make_cmd} install --path . --target ${RUST_TARGET} --root="${DESTDIR}/usr" \ --locked ${configure_args} ${make_install_args} - rm "${DESTDIR}"/usr/.crates.toml + rm -f "${DESTDIR}"/usr/.crates.toml + rm -f "${DESTDIR}"/usr/.crates2.json }