[opensuse-kernel] [PATCH] kernel-module-subpackage: Properly quote flavor in expressions
That fixes a parse error if the flavor starts with a digit or contains other non-alphabetic characters. --- rpm/kernel-module-subpackage | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rpm/kernel-module-subpackage b/rpm/kernel-module-subpackage index e9718e0..9be379a 100644 --- a/rpm/kernel-module-subpackage +++ b/rpm/kernel-module-subpackage @@ -26,7 +26,7 @@ Provides: multiversion(kernel) Requires: coreutils grep %{-c:Requires: %{-n*}-ueficert} Enhances: kernel-%1 -%if %1 == "default" +%if "%1" == "default" Obsoletes: %{-n*}-kmp-trace %ifarch %ix86 Obsoletes: %{-n*}-kmp-vmi @@ -38,7 +38,7 @@ Obsoletes: %{-n*}-kmp-desktop Obsoletes: %{-n*}-kmp-xen %endif %endif -%if %1 == "pae" +%if "%1" == "pae" Obsoletes: %{-n*}-kmp-desktop %endif AutoReqProv: on -- 2.10.0 -- Andreas Schwab, SUSE Labs, schwab@suse.de GPG Key fingerprint = 0196 BAD8 1CE9 1970 F4BE 1748 E4D4 88E3 0EEA B9D7 "And now for something completely different." -- To unsubscribe, e-mail: opensuse-kernel+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-kernel+owner@opensuse.org
On 2016-09-26 09:52, Andreas Schwab wrote:
That fixes a parse error if the flavor starts with a digit or contains other non-alphabetic characters.
Thanks, merged. Michal -- To unsubscribe, e-mail: opensuse-kernel+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-kernel+owner@opensuse.org
participants (2)
-
Andreas Schwab
-
Michal Marek