diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2019-01-09 12:18:02 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2019-01-09 13:50:35 +0000 |
commit | c0db4733641302439c7384e3654d3df575c1a1ce (patch) | |
tree | d58c6be8614c6e4a7654ec927e6356e4b3e72cc0 | |
parent | e22bd77117577c610a8dae895a9429d18ec02a90 (diff) |
buildrepo: add logfile path to aport struct
this is so we can simplify the args passed to plugins
-rwxr-xr-x | bin/buildrepo.lua | 8 |
1 files 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 |