зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1035099 - Remove the comm-central workarounds from MozbuildObject.from_environment. r=gps
This commit is contained in:
Родитель
356353b6d2
Коммит
052bf9fc7b
|
@ -172,29 +172,12 @@ class MozbuildObject(ProcessExecutionMixin):
|
|||
# inside an objdir you probably want to perform actions on that objdir,
|
||||
# not another one. This prevents accidental usage of the wrong objdir
|
||||
# when the current objdir is ambiguous.
|
||||
# However, if the found mozconfig resolves to another objdir that
|
||||
# doesn't exist, we may be in a subtree like when building mozilla/
|
||||
# under c-c, and the objdir was defined as a relative path. Try again
|
||||
# adjusting for that.
|
||||
|
||||
if topobjdir and config_topobjdir:
|
||||
if not os.path.exists(config_topobjdir):
|
||||
config_topobjdir = MozbuildObject.resolve_mozconfig_topobjdir(
|
||||
os.path.dirname(topsrcdir), config)
|
||||
if current_project:
|
||||
config_topobjdir = os.path.join(config_topobjdir,
|
||||
current_project)
|
||||
config_topobjdir = os.path.join(config_topobjdir,
|
||||
os.path.basename(topsrcdir))
|
||||
elif current_project:
|
||||
if current_project:
|
||||
config_topobjdir = os.path.join(config_topobjdir, current_project)
|
||||
|
||||
_config_topobjdir = config_topobjdir
|
||||
mozilla_dir = os.path.join(_config_topobjdir, 'mozilla')
|
||||
if not samepath(topobjdir, _config_topobjdir) \
|
||||
and (not os.path.exists(mozilla_dir) or not samepath(topobjdir,
|
||||
mozilla_dir)):
|
||||
|
||||
if not samepath(topobjdir, _config_topobjdir):
|
||||
raise ObjdirMismatchException(topobjdir, _config_topobjdir)
|
||||
|
||||
topobjdir = topobjdir or config_topobjdir
|
||||
|
|
Загрузка…
Ссылка в новой задаче