Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tag: FIREFOX_18_0b6…
Fetching contributors…

Cannot retrieve contributors at this time

109 lines (100 sloc) 3.071 kb
import time, uuid
def getSupportedPlatforms():
return ('linux', 'linuxqt','linux64',
'win32', 'macosx', 'macosx64',
'win64', 'android',
'gb_armv7a_gecko', 'linux32_gecko',
'macosx64_gecko', 'win32_gecko',
'linux64_gecko', 'linux32_gecko_localizer',
'macosx64_gecko_localizer', 'win32_gecko_localizer',
def getPlatformFtpDir(platform):
platform_ftp_map = {
'linux': 'linux-i686',
'linux64': 'linux-x86_64',
'macosx': 'mac',
'macosx64': 'mac',
'win32': 'win32',
'win64': 'win64-x86_64',
'android': 'android-r7',
return platform_ftp_map.get(platform)
def genBuildID(now=None):
"""Return a buildid based on the current time"""
if not now:
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
def incrementBuildID(buildID):
"""Add 1 second to a buildID, handling rollovers to next minute/hour/etc"""
epoch = time.mktime(time.strptime(buildID, "%Y%m%d%H%M%S"))
return genBuildID(epoch+1)
def reallyShort(name, product=None):
prefix = ''
if product != None and 'thunderbird' in product:
prefix = 'tb-'
mappings = {
'mozilla': 'm',
'comm': 'c',
'central': 'cen',
'1.9.1': '191',
'1.9.2': '192',
'places': 'plc',
'electrolysis': 'e10s',
'jaegermonkey': 'jm',
'shadow': 'sh',
'mobile': 'mb',
'desktop': None,
'debug': 'dbg',
'xulrunner': 'xr',
'build': 'bld',
'linux': 'lnx',
'win32': 'w32',
'win64': 'w64',
'macosx': 'osx',
'macosx64': 'osx64',
'linux64': 'lnx64',
'android': 'andrd',
'release': 'rel',
'mochitest': 'm',
'browser-chrome': 'b-c',
'other': 'oth',
'browser': 'br',
'nightly': 'ntly',
'tryserver': 'try',
'cedar': 'ced',
'birch': 'bir',
'maple': 'map',
'leopard': 'leo',
'snowleopard': 'snow',
'fedora': 'fed',
'fedora64': 'fed64',
'repack': 'rpk',
'alder': 'a',
'holly': 'h',
'larch': 'l',
'accessibility': 'a11y',
'inbound': 'in',
'devtools': 'dev',
'services': 'srv',
'private-browsing': 'pb',
'gecko': 'g',
'localizer': 'lz',
hyphen_seperated_words = name.split('-')
words = []
for word in hyphen_seperated_words:
space_seperated_words = word.split('_')
for word in space_seperated_words:
words.extend(word.split(' '))
new_words = []
for word in words:
if word in mappings.keys():
if mappings[word]:
return prefix + '-'.join(new_words)
Jump to Line
Something went wrong with that request. Please try again.