bliss

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

commit 580ce7e291f0833c0ca32e791a66505690791898
parent deeec708aefaa756e125760c2c2d112f11be6588
Author: phoebos <ben@bvnf.space>
Date:   Mon, 11 Nov 2024 21:02:20 +0000

add misc comments

Diffstat:
Mbliss/checksum.lua | 2++
Mbliss/pkg.lua | 2++
2 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/bliss/checksum.lua b/bliss/checksum.lua @@ -48,6 +48,7 @@ local function checksum(env, arg) f:write(sums) utils.log(p, "Generated checksums") else + -- TODO: don't make checksum file then utils.log(p, "No sources needing checksums") end f:close() @@ -63,6 +64,7 @@ local function verify_checksums(p, repo_dir, caches) local sums = pkg.find_checksums(p, repo_dir) for i,v in ipairs(caches) do + -- TODO: skip git local sum = checksum_file(v) if #sums[i][1] == 64 then utils.die(p, "Detected sha256 checksums") diff --git a/bliss/pkg.lua b/bliss/pkg.lua @@ -6,6 +6,7 @@ local tsort = require "bliss.tsort" local glob = require "posix.glob" local sys_stat = require "posix.sys.stat" +--- return an array of arrays of split lines local function read_lines(file) local t = {} local f = io.open(file) @@ -155,6 +156,7 @@ local function order(env, pkgs) return r end +--- @export local M = { read_lines = read_lines, find = find,