Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: mozharness/mozilla/l10n/multi_locale_build.py

Issue 29633713: Issue 6077 - Create script to modify the list of search engines dynamically (Closed)
Patch Set: Created Dec. 8, 2017, 3:37 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« mozharness/abb/transform_locales.py ('K') | « mozharness/abb/transform_locales.py ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mozharness/mozilla/l10n/multi_locale_build.py
===================================================================
--- a/mozharness/mozilla/l10n/multi_locale_build.py
+++ b/mozharness/mozilla/l10n/multi_locale_build.py
@@ -15,16 +15,17 @@ import sys
sys.path.insert(1, os.path.dirname(os.path.dirname(sys.path[0])))
from mozharness.base.errors import MakefileErrorList, SSHErrorList
from mozharness.base.log import FATAL
from mozharness.base.vcs.vcsbase import MercurialScript
from mozharness.mozilla.l10n.locales import LocalesMixin
from mozharness.abb.transform_locales import transform_locales as abb_transform_locales
+from mozharness.abb.transform_locales import transform_search_engines_list as abb_transform_search_engines_list
# MultiLocaleBuild {{{1
class MultiLocaleBuild(LocalesMixin, MercurialScript):
""" This class targets Fennec multilocale builds.
We were considering this for potential Firefox desktop multilocale.
Now that we have a different approach for B2G multilocale,
it's most likely misnamed. """
@@ -99,16 +100,17 @@ class MultiLocaleBuild(LocalesMixin, Mer
MercurialScript.__init__(self, config_options=self.config_options,
all_actions=['clobber', 'pull-build-source',
'pull-locale-source',
'build', 'package-en-US',
'upload-en-US',
'backup-objdir',
'restore-objdir',
'add-locales',
+ 'abb-transform-search-engines-list',
'abb-transform-locales',
'package-multi',
'upload-multi', 'summary'],
require_config_file=require_config_file)
def clobber(self):
c = self.config
if c['work_dir'] != '.':
@@ -244,16 +246,21 @@ class MultiLocaleBuild(LocalesMixin, Mer
def _process_command(self, **kwargs):
"""Stub wrapper function that allows us to call scratchbox in
MaemoMultiLocaleBuild.
"""
return self.run_command(**kwargs)
+ def abb_transform_search_engines_list(self):
+ dirs = self.query_abs_dirs()
+ abb_transform_search_engines_list(dirs['abs_mozilla_dir'],
+ dirs['abs_objdir'], self)
+
def abb_transform_locales(self):
dirs = self.query_abs_dirs()
abb_transform_locales(dirs['abs_mozilla_dir'],
dirs['abs_objdir'], self)
# __main__ {{{1
if __name__ == '__main__':
pass
« mozharness/abb/transform_locales.py ('K') | « mozharness/abb/transform_locales.py ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld