bliss

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

commit c0b8006586036fe3b3a80d9f3e951956da1f4fb7
parent 0d1bf8c9df4b48c50786c9849cad07cb66aab878
Author: phoebos <ben@bvnf.space>
Date:   Fri, 30 Jun 2023 01:31:21 +0100

fix pkg.find_depends interface to be consistent

Diffstat:
Mbliss/pkg.lua | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/bliss/pkg.lua b/bliss/pkg.lua @@ -40,8 +40,8 @@ local function find_checksums(pkg, repo_dir) return read_lines(p) end -local function find_depends(pkg, path) - local p = find(pkg, path) .. "/depends" +local function find_depends(pkg, repo_dir) + local p = repo_dir .. "/depends" return read_lines(p) end @@ -92,7 +92,7 @@ end local function recurse_all_deps(env, pkgs, deps) for _, p in ipairs(pkgs) do if not deps[p] then - local d = find_depends(p, env.PATH) + local d = find_depends(p, find(p, env.PATH)) -- ignore make, just get pkg names local d_ = {} for _,v in ipairs(d) do