def contains_specfile(filenames): """Return True if any file in a list are SPEC files. :param List[str] filenames: list of filenames """ for fname in filenames: if is_specfile(fname): return True return False
def are_all_specfile(filenames): """Return True if all files in a list are SPEC files. :param List[str] filenames: list of filenames """ for fname in filenames: if not is_specfile(fname): return False return True