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:
parent
f487983d6c
commit
fc12436f25
1 changed files with 1 additions and 1 deletions
|
@ -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 \
|
||||
|
|
Loading…
Reference in a new issue