macros.cargo: vacuum up Cargo.toml.orig in addition to Cargo.lock

This fixes builds with cargo from Rust 1.62+, which now complains
and fails our builds if the Cargo.toml.orig file already exists.
This commit is contained in:
Fabio Valentini 2022-07-01 19:29:56 +02:00
parent 4b93531d5f
commit 98638813aa
No known key found for this signature in database
GPG key ID: 5AC5F572E5D410AF

View file

@ -44,6 +44,7 @@ registry = "https://crates.io"\
replace-with = "local-registry"\ replace-with = "local-registry"\
EOF\ EOF\
%{__rm} -f Cargo.lock \ %{__rm} -f Cargo.lock \
%{__rm} -f Cargo.toml.orig \
) )
%__cargo_parse_opts(naf:) %{shrink:\ %__cargo_parse_opts(naf:) %{shrink:\