tor-browser

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

mac_notarization.py (597B)


      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 Transform mac notarization tasks
      6 """
      7 
      8 from taskgraph.transforms.base import TransformSequence
      9 
     10 transforms = TransformSequence()
     11 
     12 
     13 @transforms.add
     14 def only_level_3_notarization(config, jobs):
     15    """Filter out any notarization jobs that are not level 3"""
     16    for job in jobs:
     17        if "notarization" in config.kind and int(config.params["level"]) != 3:
     18            continue
     19        yield job