data: Escape \n properly

Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
This commit is contained in:
Igor Gnatenko 2019-03-10 10:14:28 +01:00
parent 84a73bfa24
commit 7f0a499ff3
No known key found for this signature in database
GPG key ID: 695714BD1BBC5F4C

View file

@ -74,7 +74,7 @@ if %__cargo_is_lib; then \
CRATE_VERSION=$(%__cargo_inspector --version Cargo.toml) \
REG_DIR=%{buildroot}%{cargo_registry}/$CRATE_NAME-$CRATE_VERSION \
%{__mkdir} -p $REG_DIR \
%{__cargo} package -l | xargs -d '\n' %{__cp} --parents -a -t $REG_DIR \
%{__cargo} package -l | xargs -d '\\\n' %{__cp} --parents -a -t $REG_DIR \
%if ! %{with check} \
%{__cp} -a Cargo.toml.orig $REG_DIR/Cargo.toml \
%endif \