summaryrefslogtreecommitdiffstats
path: root/build/download/base.py
diff options
context:
space:
mode:
authorMilan Verespej <m.verespej@partner.samsung.com>2019-05-20 09:44:23 +0200
committerMilan Verespej <m.verespej@partner.samsung.com>2019-05-24 10:52:24 +0200
commit83033592e2c6fe3f362241eb4d7d7df03dbfc591 (patch)
treefd92f74a293ef449c527349ea8ed6a1c29b02ae1 /build/download/base.py
parent8786632a6a9cf3be20e7b1d6a047751fa26fcf8b (diff)
Improve download of git repositories
Issue-ID: OOM-1803 Change-Id: I167f66f3cb6b96d9e21c5ffbd0cf0eb33ef4932e Signed-off-by: Milan Verespej <m.verespej@partner.samsung.com>
Diffstat (limited to 'build/download/base.py')
-rw-r--r--build/download/base.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/build/download/base.py b/build/download/base.py
index fcf60242..e3081638 100644
--- a/build/download/base.py
+++ b/build/download/base.py
@@ -22,6 +22,7 @@
import progressbar
import concurrent.futures
+from distutils.spawn import find_executable
progressbar.streams.wrap_stdout()
progressbar.streams.wrap_stderr()
@@ -81,3 +82,5 @@ def finish_progress(progress, error_count, log):
progress.finish(dirty=error_count > 0)
log.info('Download ended. Elapsed time {}'.format(progress.data()['time_elapsed']))
+def check_tool(name):
+ return find_executable(name)