diff options
author | Boris Nagaev <bnagaev@gmail.com> | 2015-10-25 15:35:01 (GMT) |
---|---|---|
committer | Boris Nagaev <bnagaev@gmail.com> | 2015-10-27 23:45:36 (GMT) |
commit | 69220922e573a662133a1a7672460e13acf248c3 (patch) | |
tree | df612ab0b25174a06247ba86fc0581a05fa1ff34 | |
parent | 6b1a7962cfb387798899d63c0c6d33431b279906 (diff) | |
download | mxe-69220922e573a662133a1a7672460e13acf248c3.zip mxe-69220922e573a662133a1a7672460e13acf248c3.tar.gz mxe-69220922e573a662133a1a7672460e13acf248c3.tar.bz2 |
build-pkg: don't pre-download if MXE_MAX_ITEMS
MXE_MAX_ITEMS is used mostly for debugging purposes.
Waiting all packages to download (2Gb) is boring.
-rwxr-xr-x | tools/build-pkg.lua | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tools/build-pkg.lua b/tools/build-pkg.lua index 4b47b14..78fe32f 100755 --- a/tools/build-pkg.lua +++ b/tools/build-pkg.lua @@ -573,7 +573,9 @@ 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 +if not max_items then + local cmd = ('%s download -j 6 -k'):format(tool 'make') + while not execute(cmd) do end end gitInit() local items, item2deps, item2ver = getItems() |