Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tag: FIREFOX_4_0rc1…
Fetching contributors…

Octocat-spinner-32-eaf2f5

Cannot retrieve contributors at this time

file 33 lines (27 sloc) 0.869 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
import time, uuid

def getCodesighsPlatforms():
    return ('linux', 'linuxqt','linux64',
            'win32', 'macosx', 'macosx64')

def getSupportedPlatforms():
    return ('linux', 'linuxqt','linux64',
            'win32', 'macosx', 'macosx64',
            'wince', 'win64', 'android')

def getPlatformFtpDir(platform):
    platform_ftp_map = {
        'linux': 'linux-i686',
        'linux64': 'linux-x86_64',
        'macosx': 'mac',
        'macosx64': 'mac',
        'win32': 'win32',
        'win64': 'win64',
        'wince': 'wince-arm',
        'android': 'android-r7',
    }
    return platform_ftp_map.get(platform)

def genBuildID():
    """Return a buildid based on the current time"""
    now = time.time()
    return time.strftime("%Y%m%d%H%M%S", time.localtime(now))

def genBuildUID():
    """Return a unique build uid"""
    return uuid.uuid4().hex
Something went wrong with that request. Please try again.