summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2019-01-09 12:04:36 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2019-01-09 13:50:35 +0000
commit712a2cd1368bbfa0f79c49140feb5cec8a45f2a9 (patch)
treee8c14dcca9f6b6a48fd41604fe49f93821b7b347
parent22456c12063c07183eb7c2fcf2c9be386861dda5 (diff)
downloadlua-aports-712a2cd1368bbfa0f79c49140feb5cec8a45f2a9.tar.bz2
lua-aports-712a2cd1368bbfa0f79c49140feb5cec8a45f2a9.tar.xz
buildrepo: factor out logdirbase, use conf.logdir instead
-rwxr-xr-xbin/buildrepo.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/bin/buildrepo.lua b/bin/buildrepo.lua
index a60a3e4..5b5906d 100755
--- a/bin/buildrepo.lua
+++ b/bin/buildrepo.lua
@@ -159,7 +159,7 @@ conf.arch = abuild.arch
local homedir = os.getenv("HOME")
local aportsdir = opts.a or conf.aportsdir or ("%s/aports"):format(homedir)
local repodest = opts.d or conf.repodest or abuild.repodest or ("%s/packages"):format(homedir)
-local logdirbase = opts.l or conf.logdir
+conf.logdir = opts.l or conf.logdir
if opts.n then
build_aport = function() return true end
@@ -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(logdirbase, repo, aport)
+ local logfile = logfile_path(conf.logdir, repo, aport)
tried = tried + 1
local progress = {
tried = tried,