build-pkg: reorder functions

gitCheckout() will use gitCommit()
pull/1191/head
Boris Nagaev 9 years ago
parent 6706af72c4
commit 1840845795

@ -353,6 +353,12 @@ local function gitTag(name)
os.execute(GIT .. 'tag ' .. name)
end
-- git commits changes in ./usr
local function gitCommit(message)
local cmd = GIT .. GIT_USER .. 'commit -a -m %q --quiet'
assert(execute(cmd:format(message)))
end
local function gitCheckout(new_branch, deps)
local main_dep = deps[1]
if main_dep then
@ -409,12 +415,6 @@ local function gitStatus()
return new_files, changed_files
end
-- git commits changes in ./usr
local function gitCommit(message)
local cmd = GIT .. GIT_USER .. 'commit -a -m %q --quiet'
assert(execute(cmd:format(message)))
end
local function isValidBinary(target, file)
local cmd = './usr/bin/%s-objdump -t %s > /dev/null 2>&1'
return execute(cmd:format(target, file))

Loading…
Cancel
Save