Bug 1472502 - fix mach static-analysis clear-cache. r?sylvestre
MozReview-Commit-ID: AUlYNnEAtbS
--- a/python/mozbuild/mozbuild/mach_commands.py
+++ b/python/mozbuild/mozbuild/mach_commands.py
@@ -1829,17 +1829,17 @@ class StaticAnalysis(MachCommandBase):
rc = self._get_clang_tools(force=True, skip_cache=skip_cache,
source=source, verbose=verbose)
return rc
@StaticAnalysisSubCommand('static-analysis', 'clear-cache',
'Delete local helpers and reset static analysis helper tool cache')
def clear_cache(self, verbose=False):
self._set_log_level(verbose)
- rc = self._get_clang_tools(force=True, download_if_needed=False,
+ rc = self._get_clang_tools(force=True, download_if_needed=True, skip_cache=True,
verbose=verbose)
if rc != 0:
return rc
self._artifact_manager.artifact_clear_cache()
@StaticAnalysisSubCommand('static-analysis', 'print-checks',
'Print a list of the static analysis checks performed by default')