summaryrefslogtreecommitdiffstats
path: root/buildrepo.lua
diff options
context:
space:
mode:
Diffstat (limited to 'buildrepo.lua')
-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