Bug 1227102 - tooltool_fetch() should download tooltool if instructed via the config. r=jlund

This commit is contained in:
Henrik Skupin 2015-11-23 14:11:41 +01:00
Родитель 93390d7300
Коммит 799d9525fa
1 изменённых файлов: 2 добавлений и 7 удалений

Просмотреть файл

@ -49,16 +49,11 @@ class TooltoolMixin(object):
def tooltool_fetch(self, manifest,
output_dir=None, privileged=False, cache=None):
"""docstring for tooltool_fetch"""
tooltool = self.query_exe('tooltool.py', return_type='list')
if self.config.get("download_tooltool"):
tooltool = [bin for bin in tooltool if os.path.exists(bin)]
if tooltool:
cmd = [tooltool[0]]
else:
cmd = [self._fetch_tooltool_py()]
cmd = [sys.executable, self._fetch_tooltool_py()]
else:
cmd = tooltool
cmd = self.query_exe('tooltool.py', return_type='list')
# get the tooltool servers from configuration
default_urls = self.config.get('tooltool_servers', TOOLTOOL_SERVERS)