diff --git a/rust.changes b/rust.changes index e5643a5..f504988 100644 --- a/rust.changes +++ b/rust.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Sun Feb 24 09:40:06 UTC 2019 - Jan Engelhardt + +- Avoid bash-specific syntax in "test" call. + ------------------------------------------------------------------- Sun Feb 24 01:52:06 UTC 2019 - Luke Jones diff --git a/rust.spec b/rust.spec index 435bac9..8bf0f19 100644 --- a/rust.spec +++ b/rust.spec @@ -404,7 +404,7 @@ sed -i '1s|^|#!/bin/bash\n|' src/stdsimd/ci/run-docker.sh # Sometimes we may be rebuilding with the same compiler, # setting local-rebuild will skip stage0 build, reducing build time -if [ $(%{rust_root}/bin/rustc --version | sed -En 's/rustc ([0-9].[0-9][0-9].[0-9]).*/\1/p') == '%{version}' ]; then +if [ $(%{rust_root}/bin/rustc --version | sed -En 's/rustc ([0-9].[0-9][0-9].[0-9]).*/\1/p') = '%{version}' ]; then sed -i -e "s|#local-rebuild = false|local-rebuild = true|" config.toml; fi @@ -577,4 +577,4 @@ rm -rf %{buildroot}%{_sysconfdir} %dir %{_docdir}/cargo %{_docdir}/cargo/html -%changelog \ No newline at end of file +%changelog