From c0db4733641302439c7384e3654d3df575c1a1ce Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Wed, 9 Jan 2019 12:18:02 +0000 Subject: buildrepo: add logfile path to aport struct this is so we can simplify the args passed to plugins --- bin/buildrepo.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/bin/buildrepo.lua b/bin/buildrepo.lua index 43cf0ce..e633baa 100755 --- a/bin/buildrepo.lua +++ b/bin/buildrepo.lua @@ -206,7 +206,7 @@ for _, repo in pairs(args) do local built = 0 local tried = 0 for aport in db:each_in_build_order(pkgs) do - local logfile = logfile_path(conf.logdir, repo, aport) + aport.logfile = logfile_path(conf.logdir, repo, aport) tried = tried + 1 local progress = { tried = tried, @@ -218,9 +218,9 @@ for _, repo in pairs(args) do warn("%s: Skipped due to missing dependencies", aport.pkgname) elseif not (opts.s and skip_aport(aport)) then log_progress(progress, repo, aport) - plugins_prebuild(aport, progress, conf.repodest, abuild.arch, logfile, opts) - local success = build_aport(aport, conf.repodest, logfile, opts.R) - plugins_postbuild(aport, success, conf.repodest, abuild.arch, logfile, opts) + plugins_prebuild(aport, progress, conf.repodest, abuild.arch, aport.logfile, opts) + local success = build_aport(aport, conf.repodest, aport.logfile, opts.R) + plugins_postbuild(aport, success, conf.repodest, abuild.arch, aport.logfile, opts) if success then built = built + 1 end -- cgit v1.2.3