mirror of
https://github.com/HeyPuter/firefox.git
synced 2026-11-25 11:37:43 -10:00
Involved work which landed on the date project branch with: * No Bug, by [email protected] (https://hg.mozilla.org/projects/date/rev/e7af20515b1c, https://hg.mozilla.org/projects/date/rev/d7f0f1c6d564, https://hg.mozilla.org/projects/date/rev/db530d7a4672) * Bug 1171738, by [email protected] (https://hg.mozilla.org/projects/date/rev/a906f6997731, https://hg.mozilla.org/projects/date/rev/ada87315d4c0, https://hg.mozilla.org/projects/date/rev/fbee52f145e9, https://hg.mozilla.org/projects/date/rev/2939b68e59fc) * Bug 1312000, by [email protected] (https://hg.mozilla.org/projects/date/rev/79a2f66ff5c0) * Bug 1312396, by [email protected] (https://hg.mozilla.org/projects/date/rev/dc06c58a5663) * Bug 1312585, by [email protected] (https://hg.mozilla.org/projects/date/rev/7cf267b61752) * Bug 1316527, by [email protected] (https://hg.mozilla.org/projects/date/rev/cc2d9365d9b9) * Bug 1318068, by [email protected] (https://hg.mozilla.org/projects/date/rev/7cb11cb76a09) * Bug 1326093, by [email protected] (https://hg.mozilla.org/projects/date/rev/f64a03d94ac7) MozReview-Commit-ID: Fhom5OcIWru
38 lines
1.3 KiB
Python
38 lines
1.3 KiB
Python
# This Source Code Form is subject to the terms of the Mozilla Public
|
|
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
|
|
from __future__ import absolute_import, print_function, unicode_literals
|
|
|
|
from . import transform
|
|
|
|
|
|
class RepackTask(transform.TransformTask):
|
|
"""
|
|
A task implementing a l10n repack job. These may depend on build jobs and
|
|
do a repack of them
|
|
"""
|
|
|
|
@classmethod
|
|
def get_inputs(cls, kind, path, config, params, loaded_tasks):
|
|
only_platforms = config.get('only-for-build-platforms')
|
|
|
|
for task in loaded_tasks:
|
|
if task.kind not in config.get('kind-dependencies'):
|
|
continue
|
|
|
|
build_platform = task.attributes.get('build_platform')
|
|
build_type = task.attributes.get('build_type')
|
|
if not build_platform or not build_type:
|
|
continue
|
|
platform = "{}/{}".format(build_platform, build_type)
|
|
if only_platforms and platform not in only_platforms:
|
|
continue
|
|
|
|
repack_task = {'dependent-task': task}
|
|
|
|
if config.get('job-template'):
|
|
repack_task.update(config.get('job-template'))
|
|
|
|
yield repack_task
|