From fc12436f250778412f00e499254cca142304523b Mon Sep 17 00:00:00 2001 From: Igor Gnatenko Date: Sat, 25 Feb 2017 19:21:40 +0100 Subject: [PATCH] macros: move Cargo.toml.orig inplace cargo package -l lists Cargo.toml.orig and we're installing it anyway, so let's just do mv -f instead of doing new install. Signed-off-by: Igor Gnatenko --- data/macros.cargo | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/data/macros.cargo b/data/macros.cargo index f4fa071..5378eea 100644 --- a/data/macros.cargo +++ b/data/macros.cargo @@ -46,7 +46,7 @@ if %__cargo_is_lib; then \ %{__mkdir} -p $REG_DIR \ %__cargo package -l | xargs cp --parents -p -t $REG_DIR \ %if ! %{with check} \ - %{__install} -p Cargo.toml.orig $REG_DIR/Cargo.toml \ + %{__mv} -f $REG_DIR/Cargo.toml{.orig,} \ %endif \ echo '{"files":{},"package":""}' > $REG_DIR/.cargo-checksum.json \ fi \