зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1344244 - Post: Allow --application-choice to |mach bootstrap|. r=glandium
MozReview-Commit-ID: 496iK5iTEPX --HG-- extra : rebase_source : 108fdd931b4b0d0b69e00ac9e14a1b22c4891605
This commit is contained in:
Родитель
c3efb6fe79
Коммит
a66ad814f1
|
@ -141,8 +141,8 @@ def main(args):
|
|||
'content. Like --repo, you should not need to set this.')
|
||||
|
||||
parser.add_option('--application-choice', dest='application_choice',
|
||||
help='Pass in an application choice (desktop/android) instead of using the '
|
||||
'default interactive prompt.')
|
||||
help='Pass in an application choice (see mozboot.bootstrap.APPLICATIONS) '
|
||||
'instead of using the default interactive prompt.')
|
||||
parser.add_option('--no-interactive', dest='no_interactive', action='store_true',
|
||||
help='Answer yes to any (Y/n) interactive prompts.')
|
||||
|
||||
|
|
|
@ -19,10 +19,14 @@ class Bootstrap(object):
|
|||
|
||||
@Command('bootstrap', category='devenv',
|
||||
description='Install required system packages for building.')
|
||||
def bootstrap(self):
|
||||
@CommandArgument('--application-choice',
|
||||
default=None,
|
||||
help='Pass in an application choice (see mozboot.bootstrap.APPLICATIONS) '
|
||||
'instead of using the default interactive prompt.')
|
||||
def bootstrap(self, application_choice=None):
|
||||
from mozboot.bootstrap import Bootstrapper
|
||||
|
||||
bootstrapper = Bootstrapper()
|
||||
bootstrapper = Bootstrapper(choice=application_choice)
|
||||
bootstrapper.bootstrap()
|
||||
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче