Ejemplo n.º 1
0
 def are_you_interested_in_file(self, filepath, platform, arch):
     if not filepath.endswith('deb'):
         return False
     if not is_really_deb(filepath):
         return False
     distribution_name, codename = platform.rsplit('-', 1)
     return distribution_name in KNOWN_DISTRIBUTIONS and \
            codename in KNOWN_DISTRIBUTIONS[distribution_name] and \
            arch in TRANSLATE_ARCH and \
            TRANSLATE_ARCH[arch] in KNOWN_DISTRIBUTIONS[distribution_name][codename] and \
            is_really_deb(filepath)
Ejemplo n.º 2
0
 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
Ejemplo n.º 3
0
 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