for i in range(0, len(makeDirs)):
            makeDirs[i] = path.join(releaseConfig['mozilla_dir'], makeDirs[i])
        mozillaDir = releaseConfig['mozilla_dir']
        mozillaSrcDir = releaseConfig['mozilla_dir']
    elif 'mozilla_srcdir' in releaseConfig:
        mozillaSrcDir = releaseConfig['mozilla_srcdir']

    if not options.tooltool_script:
        options.tooltool_script = ['/tools/tooltool.py']

    if options.balrog_api_root:
        credentials = readConfig(options.credentials_file,
                                 required=['balrog_credentials'])
        auth = (options.balrog_username,
                credentials['balrog_credentials'][options.balrog_username])
        balrog_submitter = ReleaseSubmitterV3(options.balrog_api_root, auth)
    else:
        balrog_submitter = None

    partialUpdates = releaseConfig.get('partialUpdates', {}).copy()
    createRepacks(
        sourceRepo=make_hg_url(branchConfig["hghost"], sourceRepoInfo["path"]),
        revision=options.releaseTag,
        l10nRepoDir=l10nRepoDir,
        l10nBaseRepo=make_hg_url(branchConfig["hghost"],
                                 releaseConfig["l10nRepoPath"]),
        mozconfigPath=mozconfig,
        srcMozconfigPath=releaseConfig.get('l10n_mozconfigs',
                                           {}).get(options.platform),
        objdir=options.objdir,
        makeDirs=makeDirs,
Beispiel #2
0
                      props['appVersion'],
                      locale,
                      props['hashType'],
                      extVersion,
                      isOSUpdate=isOSUpdate,
                      **updateKwargs)
    elif options.type_ == "release":
        updateKwargs = {}
        if options.schema_version == 2:
            submitter = ReleaseSubmitterV2(options.api_root, auth,
                                           options.dummy)
            updateKwargs['completeMarSize'] = props['completeMarSize']
            updateKwargs['completeMarHash'] = props['completeMarHash']
            updateKwargs['completeMarUrl'] = props['completeMarUrl']
        else:
            submitter = ReleaseSubmitterV3(options.api_root, auth,
                                           options.dummy)
            updateKwargs["completeInfo"] = [{
                'size': props['completeMarSize'],
                'hash': props['completeMarHash'],
            }]
            if "partialInfo" in props:
                updateKwargs["partialInfo"] = props["partialInfo"]

        submitter.run(props['platform'], props['appName'], props['appVersion'],
                      props['version'], props['build_number'], locale,
                      props['hashType'], extVersion, props['buildid'],
                      **updateKwargs)
    else:
        parser.error("Invalid value for --type")