Merge pull request #2108 from coolo/fix_whitelist

Readd whitelist for installcheck
This commit is contained in:
Stephan Kulow 2019-06-06 15:59:48 +02:00 committed by GitHub
commit a44d28866b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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