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:
Igor Gnatenko 2018-01-08 23:57:03 +01:00
parent 813d8efc58
commit 5313b35271

View file

@ -28,6 +28,7 @@ directory = "%{cargo_registry}"\
registry = "https://crates.io"\
replace-with = "local-registry"\
EOF \
%{__rm} -f Cargo.lock \
%if ! %{with check} \
# 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 \