Bug 1397721 - Support cross channel l10n in buildbot, part 1. r=kmoir
authorJustin Wood <Callek@gmail.com>
Tue, 12 Sep 2017 16:43:21 -0400
changeset 15430 618145e94126563ef918b2387c43f7afd69bca99
parent 15429 ca7dbfc3457c878b68bd6643334e708fe6a7b505
child 15431 eabff7c418b66bcf086a58e220adb385bce56a33
child 15435 87f4979150f1c70ecdd59934d8b9c6d002d2d822
push id190
push usersfraser@mozilla.com
push dateThu, 14 Sep 2017 10:23:41 +0000
reviewerskmoir
bugs1397721
Bug 1397721 - Support cross channel l10n in buildbot, part 1. r=kmoir MozReview-Commit-ID: DaLZvQiDg3l
mozilla/config.py
mozilla/thunderbird_config.py
--- a/mozilla/config.py
+++ b/mozilla/config.py
@@ -2835,16 +2835,21 @@ for branch in BRANCHES.keys():
 
 # Bug 1379789- disable buildbot windows builds on date
 for name, branch in [('date', BRANCHES['date'])]:
     for platform in branch['platforms'].keys():
         if not platform.startswith('win'):
             continue
         del branch['platforms'][platform]
 
+# Support cross-channel l10n in 57+ -- Bug 1397721
+for name, branch in items_at_least(BRANCHES, 'gecko_version', 57):
+    if 'l10n_repo_path' not in branch:
+        continue
+    branch['l10n_repo_path'] = 'l10n-central'
 
 if __name__ == "__main__":
     import sys
     import pprint
     args = sys.argv[1:]
 
     if len(args) > 0:
         items = dict([(b, BRANCHES[b]) for b in args])
--- a/mozilla/thunderbird_config.py
+++ b/mozilla/thunderbird_config.py
@@ -959,16 +959,21 @@ BRANCHES['cypress']['unittest_build_spac
 BRANCHES['cypress']['mozilla_srcdir'] = None
 
 # Bug 1322402 - mac universal builds dropped at 53, keep using the universal mozconfig and objdir before then
 for name, branch in items_before(BRANCHES, 'gecko_version', 53):
     if 'macosx64' in branch['platforms']:
         branch['platforms']['macosx64']['src_mozconfig'] = 'mail/config/mozconfigs/macosx-universal/nightly'
         branch['platforms']['macosx64']['platform_objdir'] = '%s/i386' % OBJDIR
 
+# Support cross-channel l10n in 57+ -- Bug 1397721
+for name, branch in items_at_least(BRANCHES, 'gecko_version', 57):
+    if 'l10n_repo_path' not in branch:
+        continue
+    branch['l10n_repo_path'] = 'l10n-central'
 
 if __name__ == "__main__":
     import sys
     import pprint
     args = sys.argv[1:]
 
     if len(args) > 0:
         items = dict([(b, BRANCHES[b]) for b in args])