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 <ignatenkobrain@fedoraproject.org>
This commit is contained in:
Igor Gnatenko 2017-02-25 19:21:40 +01:00
parent f487983d6c
commit fc12436f25

View file

@ -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 \