summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBoris Nagaev <bnagaev@gmail.com>2015-10-15 23:22:59 (GMT)
committerBoris Nagaev <bnagaev@gmail.com>2015-10-16 00:30:31 (GMT)
commit254b1bb9d6f9c54b5b9bbf124c39e801afc41c3d (patch)
tree5933308818818ca08848f248d4cf549ddf6aaaa5
parent3b52cf6053216759b323e86c438c49cf85b2851d (diff)
downloadmxe-254b1bb9d6f9c54b5b9bbf124c39e801afc41c3d.zip
mxe-254b1bb9d6f9c54b5b9bbf124c39e801afc41c3d.tar.gz
mxe-254b1bb9d6f9c54b5b9bbf124c39e801afc41c3d.tar.bz2
build-pkg: check-requirements before downloading
Don't wait for downloading completed if something is wrong with dependencies. see #908
-rwxr-xr-xtools/build-pkg.lua1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/build-pkg.lua b/tools/build-pkg.lua
index c76dcd2..923fe76 100755
--- a/tools/build-pkg.lua
+++ b/tools/build-pkg.lua
@@ -650,6 +650,7 @@ end
assert(trim(shell('pwd')) == MXE_DIR,
"Clone MXE to " .. MXE_DIR)
+assert(execute(("%s check-requirements"):format(tool 'make')))
while not execute(('%s download -j 6 -k'):format(tool 'make')) do
end
gitInit()