From 98638813aa1e085e05092ebfcbcad7ce7fd00a44 Mon Sep 17 00:00:00 2001 From: Fabio Valentini Date: Fri, 1 Jul 2022 19:29:56 +0200 Subject: [PATCH] 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. --- data/macros.cargo | 1 + 1 file changed, 1 insertion(+) diff --git a/data/macros.cargo b/data/macros.cargo index 344b44e..206df14 100644 --- a/data/macros.cargo +++ b/data/macros.cargo @@ -44,6 +44,7 @@ registry = "https://crates.io"\ replace-with = "local-registry"\ EOF\ %{__rm} -f Cargo.lock \ +%{__rm} -f Cargo.toml.orig \ ) %__cargo_parse_opts(naf:) %{shrink:\