Bug 1208184 - Make download of tooltool.py customizable via a config setting. r=jlund DONTBUILD

This commit is contained in:
Henrik Skupin 2015-09-24 22:34:53 +02:00
parent 6b714d7499
commit 1d5eedd5b7
2 changed files with 2 additions and 1 deletions

View File

@ -39,6 +39,7 @@ config = {
"virtualenv_path": '%s/build/venv' % os.getcwd(),
# Tooltool related
"download_tooltool": True,
"tooltool_cache": os.path.join(LOCAL_WORKDIR, "builds/tooltool_cache"),
"tooltool_cache_path": os.path.join(LOCAL_WORKDIR, "builds/tooltool_cache"),

View File

@ -51,7 +51,7 @@ class TooltoolMixin(object):
"""docstring for tooltool_fetch"""
tooltool = self.query_exe('tooltool.py', return_type='list')
if self.config.get("developer_mode"):
if self.config.get("download_tooltool"):
tooltool = [bin for bin in tooltool if os.path.exists(bin)]
if tooltool:
cmd = [tooltool[0]]