macros: remove Cargo.lock
cargo-package automatically strips it out, but we package also some things directly from git. Acked-by: Josh Stone <jistone@redhat.com> Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
This commit is contained in:
parent
813d8efc58
commit
5313b35271
1 changed files with 2 additions and 1 deletions
|
@ -27,7 +27,8 @@ directory = "%{cargo_registry}"\
|
||||||
[source.crates-io]\
|
[source.crates-io]\
|
||||||
registry = "https://crates.io"\
|
registry = "https://crates.io"\
|
||||||
replace-with = "local-registry"\
|
replace-with = "local-registry"\
|
||||||
EOF\
|
EOF \
|
||||||
|
%{__rm} -f Cargo.lock \
|
||||||
%if ! %{with check} \
|
%if ! %{with check} \
|
||||||
# https://github.com/rust-lang/cargo/issues/3732 \
|
# https://github.com/rust-lang/cargo/issues/3732 \
|
||||||
%{__awk} -i inplace -v INPLACE_SUFFIX=.orig '/^\\\[dev-dependencies/{f=1;next} /^\\\[/{f=0}; !f' Cargo.toml \
|
%{__awk} -i inplace -v INPLACE_SUFFIX=.orig '/^\\\[dev-dependencies/{f=1;next} /^\\\[/{f=0}; !f' Cargo.toml \
|
||||||
|
|
Loading…
Reference in a new issue