build-pkg: rename testCommand to execute

see #874
This commit is contained in:
Boris Nagaev 2015-09-21 11:05:52 +03:00
parent 803ed16c8f
commit d47a666799
1 changed files with 3 additions and 3 deletions

View File

@ -135,7 +135,7 @@ local function shell(cmd)
return text
end
local function testCommand(cmd)
local function execute(cmd)
if _VERSION == 'Lua 5.1' then
return os.execute(cmd) == 0
else
@ -290,7 +290,7 @@ end
local function isValidBinary(file)
local cmd = './usr/bin/%s-objdump -t %s > /dev/null 2>&1'
return testCommand(cmd:format(target, file))
return execute(cmd:format(target, file))
end
local function checkFile(file, pkg)
@ -623,7 +623,7 @@ end
assert(trim(shell('pwd')) == MXE_DIR,
"Clone MXE to " .. MXE_DIR)
while not testCommand('make download -j 6 -k') do
while not execute('make download -j 6 -k') do
end
gitInit()
local file2pkg = {}