def are_you_interested_in_file(self, filepath, platform, arch): return ( filepath.endswith(".rpm") and platform in KNOWN_PLATFORMS and arch in TRANSLATE_ARCH and TRANSLATE_ARCH[arch] in KNOWN_PLATFORMS[platform] and is_really_rpm(filepath) )
def are_you_interested_in_file(self, filepath, platform, arch): try: package_name, package_version, platform_string, architecture, extension = parse_filepath(filepath) except FilenameParsingFailed: return False if package_name == 'python': return False if filepath.endswith('deb') and not is_really_deb(filepath): return False if filepath.endswith('rpm') and not is_really_rpm(filepath): return False return True
def are_you_interested_in_file(self, filepath, platform, arch): return filepath.endswith('.rpm') and \ platform in KNOWN_PLATFORMS and \ arch in TRANSLATE_ARCH and \ TRANSLATE_ARCH[arch] in KNOWN_PLATFORMS[platform] and \ is_really_rpm(filepath)