Discussion:
[PATCH] mock: Bug 1327594 - Build always fails when using --nocheck
n***@gmail.com
2016-04-21 12:09:59 UTC
Permalink
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')
Miroslav Suchý
2016-04-22 09:40:30 UTC
Permalink
Post by n***@gmail.com
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
Pushed as:
* be2e236 (HEAD -> devel, origin/devel) mock: Bug 1327594 - Build always fails when using --nocheck

Thank you.
--
Miroslav Suchy, RHCA
Red Hat, Senior Software Engineer, #brno, #devexp, #fedora-buildsys
Loading...