Bug 1563326 - for code-analysis target do not globally import PackageFrontend. r=sylvestre

By globally importing PackageFrontend from the globe-analysis module we break the logger for
the PackageFrontend package.

Differential Revision: https://phabricator.services.mozilla.com/D36887

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Andi-Bogdan Postelnicu 2019-07-04 11:42:16 +00:00
parent e3a4316acf
commit d2e65163f9

View File

@ -29,7 +29,6 @@ from mach.main import Mach
from mozbuild.base import MachCommandBase
from mozbuild.build_commands import Build
from mozbuild.artifact_commands import PackageFrontend
import mozpack.path as mozpath
@ -1676,6 +1675,8 @@ class StaticAnalysis(MachCommandBase):
if source:
return self._get_clang_tools_from_source(source)
from mozbuild.artifact_commands import PackageFrontend
self._artifact_manager = PackageFrontend(self._mach_context)
if not download_if_needed:
@ -1783,6 +1784,7 @@ class StaticAnalysis(MachCommandBase):
verbose=verbose,
download_if_needed=download_if_needed)
os.mkdir(infer_path)
from mozbuild.artifact_commands import PackageFrontend
self._artifact_manager = PackageFrontend(self._mach_context)
if not download_if_needed:
return 0