tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

push_android_app.py (1021B)


      1 # This Source Code Form is subject to the terms of the Mozilla Public
      2 # License, v. 2.0. If a copy of the MPL was not distributed with this
      3 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
      4 """
      5 Apply some defaults and minor modifications to the jobs defined in the build
      6 kind.
      7 """
      8 
      9 from taskgraph.transforms.base import TransformSequence
     10 from taskgraph.util.schema import resolve_keyed_by
     11 
     12 transforms = TransformSequence()
     13 
     14 
     15 @transforms.add
     16 def resolve_keys(config, tasks):
     17    for task in tasks:
     18        for key in (
     19            "worker.channel",
     20            "worker.commit",
     21            "worker.dep",
     22            "worker.certificate-alias",
     23            "worker.product",
     24            "routes",
     25        ):
     26            resolve_keyed_by(
     27                task,
     28                key,
     29                item_name=task["name"],
     30                **{
     31                    "build-type": task["attributes"]["build-type"],
     32                    "level": config.params["level"],
     33                },
     34            )
     35        yield task