def process_rpm_ql_line(line_str, allowed_keys):
try:<EOL><INDENT>name, key_str = line_str.split('<STR_LIT:U+0020>', <NUM_LIT:1>)<EOL><DEDENT>except ValueError:<EOL><INDENT>logger.error("<STR_LIT>".format(repr(line_str)))<EOL>return False<EOL><DEDENT>if name in no_key_pkgs:<EOL><INDENT>return True<EOL><DEDENT>if key_str == NONE_KEY:<EOL><INDENT>logger.error("<STR_LIT>".format(name))<EOL>return False<EOL><DEDENT>key_match = re.match(KEY, key_str)<EOL>if not key_match:<EOL><INDENT>logger.error('<STR_LIT>'.format(line_str))<EOL>return False<EOL><DEDENT>used_key = key_match.group(<NUM_LIT:1>)<EOL>if used_key in allowed_keys:<EOL><INDENT>return True<EOL><DEDENT>logger.error("<STR_LIT>".format(name, used_key))<EOL>return False<EOL>
Checks single line of rpm-ql for correct keys

:param line_str: line to process
:param allowed_keys: list of allowed keys
:return: bool