Ignore Cargo.lock
Fixes: https://pagure.io/fedora-rust/rust2rpm/issue/90 Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
This commit is contained in:
parent
a9285d66aa
commit
b5e2db003f
1 changed files with 1 additions and 1 deletions
|
@ -90,7 +90,7 @@ if %__cargo_is_lib; then \
|
||||||
# so that cargo doesn't fail resolving dependencies: \
|
# so that cargo doesn't fail resolving dependencies: \
|
||||||
# https://github.com/rust-lang/cargo/pull/6729 \
|
# https://github.com/rust-lang/cargo/pull/6729 \
|
||||||
%{__awk} -i inplace -v INPLACE_SUFFIX=.deps '/^\\\[((.+\\\.)?((dev|build)-)?dependencies|features)/{f=1;next} /^\\\[/{f=0}; !f' Cargo.toml \
|
%{__awk} -i inplace -v INPLACE_SUFFIX=.deps '/^\\\[((.+\\\.)?((dev|build)-)?dependencies|features)/{f=1;next} /^\\\[/{f=0}; !f' Cargo.toml \
|
||||||
%{__cargo} package -l | xargs -d '\\\n' %{__cp} --parents -a -t $REG_DIR \
|
%{__cargo} package -l | grep -w -v Cargo.lock | xargs -d '\\\n' %{__cp} --parents -a -t $REG_DIR \
|
||||||
%{__mv} Cargo.toml{.deps,} \
|
%{__mv} Cargo.toml{.deps,} \
|
||||||
%{__cp} -a Cargo.toml $REG_DIR/Cargo.toml \
|
%{__cp} -a Cargo.toml $REG_DIR/Cargo.toml \
|
||||||
%{__rm} -f $REG_DIR/Cargo.toml.{orig,deps} \
|
%{__rm} -f $REG_DIR/Cargo.toml.{orig,deps} \
|
||||||
|
|
Loading…
Reference in a new issue