Home Home > GIT Browse
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Schwab <schwab@suse.de>2014-08-18 15:12:21 +0200
committerMichal Marek <mmarek@suse.cz>2014-08-18 15:30:02 +0200
commit0134440a7040b5584e828c53e8d10dd2e515dccd (patch)
treef5a5e78496465e71dfcb6a5cc84e7e8f5d12fb26
parentec64eaf6e843654323b4c2304ef7222ad421b3d2 (diff)
rpm/kernel-binary.spec.in: Fix missing quotes around %build_flavor
%build_flavor can be an arbitrary string, so it needs to be quoted for string comparison.
-rw-r--r--rpm/kernel-binary.spec.in6
1 files changed, 3 insertions, 3 deletions
diff --git a/rpm/kernel-binary.spec.in b/rpm/kernel-binary.spec.in
index 67461e299b..39852f4952 100644
--- a/rpm/kernel-binary.spec.in
+++ b/rpm/kernel-binary.spec.in
@@ -27,9 +27,9 @@
%include %_sourcedir/kernel-spec-macros
%define build_flavor @FLAVOR@
-%define build_default (%build_flavor == "default")
-%define build_xen (%build_flavor == "xen" || %build_flavor == "ec2")
-%define build_vanilla (%build_flavor == "vanilla")
+%define build_default ("%build_flavor" == "default")
+%define build_xen ("%build_flavor" == "xen" || "%build_flavor" == "ec2")
+%define build_vanilla ("%build_flavor" == "vanilla")
%define build_src_dir %my_builddir/linux-%srcversion
%define src_install_dir /usr/src/linux-%kernelrelease%variant