n***@gmail.com
2016-04-21 12:09:59 UTC
Hello, this is patch againt master. It fixes https://bugzilla.redhat.com/show_bug.cgi?id=1327594.
Tested on Fedora 23 x86_64.
fix #1327594: enclose macro variable with quotes
diff --git a/py/mockbuild/backend.py b/py/mockbuild/backend.py
index ef3eedd..23f3dc2 100644
--- a/py/mockbuild/backend.py
+++ b/py/mockbuild/backend.py
@@ -416,7 +416,7 @@ class Commands(object):
if not check:
# this is because EL5/6 does not know --nocheck
# when EL5/6 targets are not supported, replace it with --nocheck
- check_opt += ["--define", "__spec_check_template exit 0; "]
+ check_opt += ["--define", "'__spec_check_template exit 0; '"]
mode = ['-bb']
sc = self.config.get('short_circuit')
Tested on Fedora 23 x86_64.
fix #1327594: enclose macro variable with quotes
diff --git a/py/mockbuild/backend.py b/py/mockbuild/backend.py
index ef3eedd..23f3dc2 100644
--- a/py/mockbuild/backend.py
+++ b/py/mockbuild/backend.py
@@ -416,7 +416,7 @@ class Commands(object):
if not check:
# this is because EL5/6 does not know --nocheck
# when EL5/6 targets are not supported, replace it with --nocheck
- check_opt += ["--define", "__spec_check_template exit 0; "]
+ check_opt += ["--define", "'__spec_check_template exit 0; '"]
mode = ['-bb']
sc = self.config.get('short_circuit')