Bug 799648 - Part 4: Temporarily disable settings file integration; r=jhammel

DONTBUILD (NPOTB)
This commit is contained in:
Gregory Szorc 2012-10-10 11:09:21 -07:00
parent 53f46d2389
commit 5dc05ddbc1
3 changed files with 10 additions and 6 deletions

View File

@ -10,7 +10,7 @@ from mozbuild.base import MozbuildObject
from mach.base import CommandProvider
from mach.base import Command
@CommandProvider
#@CommandProvider
class Settings(MozbuildObject):
"""Interact with settings for mach.

View File

@ -300,7 +300,6 @@ To see more help for a specific command, run:
write_interval=args.log_interval)
self.load_settings(args)
conf = BuildConfig(self.settings)
stripped = {k: getattr(args, k) for k in vars(args) if k not in
CONSUMED_ARGUMENTS}
@ -403,6 +402,11 @@ To see more help for a specific command, run:
2) Environment variable
3) Default path
"""
# Settings are disabled until integration with command providers is
# worked out.
self.settings = None
return False
for provider in SETTINGS_PROVIDERS:
provider.register_settings()
self.settings.register_provider(provider)
@ -434,8 +438,8 @@ To see more help for a specific command, run:
global_group.add_argument('-h', '--help', action='help',
help='Show this help message and exit.')
global_group.add_argument('--settings', dest='settings_file',
metavar='FILENAME', help='Path to settings file.')
#global_group.add_argument('--settings', dest='settings_file',
# metavar='FILENAME', help='Path to settings file.')
global_group.add_argument('-v', '--verbose', dest='verbose',
action='store_true', default=False,

View File

@ -195,8 +195,8 @@ class MozbuildObject(ProcessExecutionMixin):
if filename:
args.extend(['-f', filename])
if allow_parallel:
args.append('-j%d' % self.settings.build.threads)
#if allow_parallel:
# args.append('-j%d' % self.settings.build.threads)
if ignore_errors:
args.append('-k')