コード例 #1
0
ファイル: yum.py プロジェクト: Annakan/infi.app_repo
 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)
     )
コード例 #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
コード例 #3
0
ファイル: wget.py プロジェクト: Annakan/infi.app_repo
 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
コード例 #4
0
ファイル: yum.py プロジェクト: Annakan/infi.app_repo
 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)