summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2014-01-24 08:28:21 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2014-01-24 08:28:21 +0000
commitfccce8fb522b156df704e3e62420d70127d57685 (patch)
treebdef02a60e2cc7510d968f61cab702014473517c
parent8c323cf9ac57fa7cef0f5245c9a8c9ca0b56c95f (diff)
downloadlua-aports-fccce8fb522b156df704e3e62420d70127d57685.tar.bz2
lua-aports-fccce8fb522b156df704e3e62420d70127d57685.tar.xz
buildrepo: dont print both warning and error when skip old fails
-rwxr-xr-xbuildrepo.lua7
1 files changed, 5 insertions, 2 deletions
diff --git a/buildrepo.lua b/buildrepo.lua
index f615a7a..d7d14f3 100755
--- a/buildrepo.lua
+++ b/buildrepo.lua
@@ -83,7 +83,11 @@ local function build_aport(aport, repodest, logdir, skip_failed)
if log ~= io.stdout then
log:close()
end
- return pipe:close()
+ success = pipe:close()
+ if not success then
+ err("%s: Failed to build", aport.pkgname)
+ end
+ return success
end
local function post_purge(repodest, repo)
@@ -163,7 +167,6 @@ for _,repo in pairs(args) do
if build_aport(aport, repodest, logdir, opts.s) then
count = count + 1
else
- err("failed to build %s", aport.pkgname)
if not opts.k then
os.exit(1)
end