summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2014-04-02 12:10:02 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2014-04-02 12:10:02 +0000
commit72a77a479af451e0a492132850aed63008a3e321 (patch)
treebdd2dffcf774c15d9269c9c49a3cf154525edc6e
parent96cf3f27499a9de50cdb98160821d2a1f9fcb0ae (diff)
downloadlua-aports-72a77a479af451e0a492132850aed63008a3e321.tar.bz2
lua-aports-72a77a479af451e0a492132850aed63008a3e321.tar.xz
buildrepo: fix regression in skip previously failed
-rwxr-xr-xbuildrepo.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/buildrepo.lua b/buildrepo.lua
index 192d0f1..23260b9 100755
--- a/buildrepo.lua
+++ b/buildrepo.lua
@@ -68,7 +68,7 @@ local function skip_aport(aport)
return true
end
-local function build_aport(aport, repodest, logdir, skip_failed)
+local function build_aport(aport, repodest, logdir)
local success, errmsg = lfs.chdir(aport.dir)
if not success then
err("%s", errmsg)
@@ -178,12 +178,12 @@ for _,repo in pairs(args) do
local totally_built = stats[repo].relevant_aports - #pkgs + built
if not db:known_deps_exists(aport) then
warn("%s: Skipped due to missing dependencies", aport.pkgname)
- elseif not (skip_failed and skip_aport(aport)) then
+ elseif not (opts.s and skip_aport(aport)) then
io.write(("%d/%d %d/%d %s %s\n"):format(tried, #pkgs,
totally_built,
stats[repo].relevant_aports,
aport.pkgname, aport.pkgver))
- if build_aport(aport, repodest, logdir, opts.s) then
+ if build_aport(aport, repodest, logdir) then
built = built + 1
else
if not opts.k then