bliss

KISS in Lua
git clone git://bvnf.space/bliss.git
Log | Files | Refs | README | LICENSE

commit b7d29ef2955443fcd224c69a23aed3f050ffabaa
parent b3df3ce6fd998ccdfa09e54dde4ef9928e34790c
Author: phoebos <ben@bvnf.space>
Date:   Fri, 30 Jun 2023 02:30:24 +0100

build: only build path once

Diffstat:
Mbliss/build.lua | 8++++----
1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/bliss/build.lua b/bliss/build.lua @@ -150,12 +150,12 @@ local function build(env, arg) utils.log("Building: explicit:" .. msg_explicit .. (#msg_implicit > 0 and (", implicit:" .. msg_implicit) or "")) -- TODO: prompt + -- append sys_db + local path = utils.shallowcopy(env.PATH) + table.insert(path, env.sys_db) + -- Download and verify sources for _,p in ipairs(deps) do - -- append sys_db - local path = utils.shallowcopy(env.PATH) - table.insert(path, env.sys_db) - local repo_dir = pkg.find(p, path) local sources = pkg.find_sources(p, repo_dir) local version = pkg.find_version(p, repo_dir)