From 961c87b31c8efc6064be8400fd782af8ddd29a236e5c6c725ab632990d385407 Mon Sep 17 00:00:00 2001 From: Luke Jones Date: Sun, 24 Feb 2019 10:00:17 +0000 Subject: [PATCH] Accepting request 678521 from home:jengelh:branches:devel:languages:rust - Avoid bash-specific syntax in "test" call. OBS-URL: https://build.opensuse.org/request/show/678521 OBS-URL: https://build.opensuse.org/package/show/devel:languages:rust/rust?expand=0&rev=185 --- rust.changes | 5 +++++ rust.spec | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) 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