utils: unbreak building packages when tests are skipped

Just replacing %check macro is ¤&%¤#%&¤%¤. I'm not going to
add any more words on it.

It breaks building many packages.

Fixes: 5391e7c9af
Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
This commit is contained in:
Igor Gnatenko
2017-09-03 12:22:11 +02:00
parent 8c3ca6986e
commit ee1176f444

View File

@@ -908,7 +908,7 @@ def submit_module_build_from_scm(username, url, branch, allow_local_url=False,
url = "file://" + url
mmd, scm, yaml = _fetch_mmd(url, branch, allow_local_url)
if skiptests:
mmd.buildopts.rpms.macros += "\n\n%check exit 0\n"
mmd.buildopts.rpms.macros += "\n\n%__spec_check_pre exit 0\n"
return submit_module_build(username, url, mmd, scm, yaml, optional_params)