Bug 1472502 - fix mach static-analysis clear-cache. r?sylvestre draft
authorAndi-Bogdan Postelnicu <bpostelnicu@mozilla.com>
Mon, 02 Jul 2018 12:05:07 +0300
changeset 813161 31e19d70419671be8c615e7bbcd5010dcff16f99
parent 812962 3cfc350101967376909ad3c729f9779ae0ab7a94
push id114808
push userbmo:bpostelnicu@mozilla.com
push dateMon, 02 Jul 2018 17:36:45 +0000
reviewerssylvestre
bugs1472502
milestone63.0a1
Bug 1472502 - fix mach static-analysis clear-cache. r?sylvestre MozReview-Commit-ID: AUlYNnEAtbS
python/mozbuild/mozbuild/mach_commands.py
--- 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')