build-pkg: reorder functions

gitCheckout() will use gitCommit()
This commit is contained in:
Boris Nagaev 2016-01-06 10:41:29 +01:00
parent 6706af72c4
commit 1840845795
1 changed files with 6 additions and 6 deletions

View File

@ -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))