示例#1
0
    'LATEST_FIREFOX_VERSION']
THUNDERBIRD.latest_version = product_details.thunderbird_versions[
    'LATEST_THUNDERBIRD_VERSION']
MOBILE.latest_version = FIREFOX.latest_version

# This is a list of dictionaries that we should generate compat info for.
# app: should match FIREFOX.id.
# main: the app version we're generating compat info for.
# versions: version numbers to show in comparisons.
# previous: the major version before :main.

if FIREFOX.latest_version:
    COMPAT = {FIREFOX.id: (), THUNDERBIRD.id: (), SEAMONKEY.id: ()}

    for app in (FIREFOX, THUNDERBIRD):
        for v in range(int(float(floor_version(app.latest_version))), 5, -1):
            v_str = floor_version(str(v))
            COMPAT[app.id] += ({
                'app': app.id,
                'main': v_str,
                'versions': (v_str, v_str + 'a2', v_str + 'a1'),
                'previous': floor_version(str(v - 1))
            }, )

    # This is because the oldest Thunderbird version is 6.0, and
    # we need to include these older Firefox versions.
    COMPAT[FIREFOX.id] += (
        {
            'app': FIREFOX.id,
            'main': '5.0',
            'versions': ('5.0', '5.0a2', '5.0a1'),
示例#2
0
FIREFOX.latest_version = product_details.firefox_versions["LATEST_FIREFOX_VERSION"]
THUNDERBIRD.latest_version = product_details.thunderbird_versions["LATEST_THUNDERBIRD_VERSION"]
MOBILE.latest_version = FIREFOX.latest_version


# This is a list of dictionaries that we should generate compat info for.
# app: should match FIREFOX.id.
# main: the app version we're generating compat info for.
# versions: version numbers to show in comparisons.
# previous: the major version before :main.

if FIREFOX.latest_version:
    COMPAT = {FIREFOX.id: (), THUNDERBIRD.id: (), SEAMONKEY.id: ()}

    for app in (FIREFOX, THUNDERBIRD):
        for v in range(int(float(floor_version(app.latest_version))), 5, -1):
            v_str = floor_version(str(v))
            COMPAT[app.id] += (
                {
                    "app": app.id,
                    "main": v_str,
                    "versions": (v_str, v_str + "a2", v_str + "a1"),
                    "previous": floor_version(str(v - 1)),
                },
            )

    # This is because the oldest Thunderbird version is 6.0, and
    # we need to include these older Firefox versions.
    COMPAT[FIREFOX.id] += (
        {"app": FIREFOX.id, "main": "5.0", "versions": ("5.0", "5.0a2", "5.0a1"), "previous": "4.0"},
        {"app": FIREFOX.id, "main": "4.0", "versions": ("4.0", "4.0a1", "3.7a"), "previous": "3.6"},