From ee1176f444571f98132393c65e800d1c128831f7 Mon Sep 17 00:00:00 2001
From: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
Date: Sun, 3 Sep 2017 12:22:11 +0200
Subject: [PATCH] utils: unbreak building packages when tests are skipped
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Just replacing %check macro is ¤&%¤#%&¤%¤. I'm not going to
add any more words on it.
It breaks building many packages.
Fixes: 5391e7c9afb709a5bed0d920d0cc9e346537976c
Signed-off-by: Igor Gnatenko <ignatenkobrain@fedoraproject.org>
---
module_build_service/utils.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/module_build_service/utils.py b/module_build_service/utils.py
index 9d6d173..70dbe14 100644
--- a/module_build_service/utils.py
+++ b/module_build_service/utils.py
@@ -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)