def check_signatures(pkg_list, allowed_keys):
all_passed = True<EOL>for line_str in pkg_list:<EOL><INDENT>all_passed &= process_rpm_ql_line(line_str.strip(), allowed_keys)<EOL><DEDENT>if not all_passed:<EOL><INDENT>raise PackageSignatureException(<EOL>'<STR_LIT>')<EOL><DEDENT>
Go through list of packages with signatures and check if all are properly signed

:param pkg_list: list of packages in format '%{name} %{SIGPGP:pgpsig}'
:param allowed_keys: list of allowed keys
:return: bool