From 2ad649781ee627db9be125e7f63f31902eba9b22 Mon Sep 17 00:00:00 2001 From: Stephan Kulow Date: Thu, 6 Jun 2019 15:28:44 +0200 Subject: [PATCH] Readd whitelist for installcheck This was somehow lost --- osclib/repochecks.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/osclib/repochecks.py b/osclib/repochecks.py index dcdb7ba3..f24d71fd 100644 --- a/osclib/repochecks.py +++ b/osclib/repochecks.py @@ -86,7 +86,14 @@ def _installcheck(pfile, arch, target_packages, whitelist): in_problem = False match = install_re.match(line) if match: - in_problem = match.group(1) in target_packages + package = match.group(1) + in_problem = False + if not package in target_packages: + continue + if package in whitelist: + logger.debug("{} fails installcheck but is white listed".format(package)) + continue + in_problem = True if in_problem: output += line + "\n" return output