logo

oasis

Own branch of Oasis Linux (upstream: <https://git.sr.ht/~mcf/oasis/>) git clone https://anongit.hacktivis.me/git/oasis.git
commit: d9bbd55168699c70021210a88dcd143a8b5abfa0
parent 20d08a2d0d4d3fdb5732341fd62243ac7bd44ae1
Author: Michael Forney <mforney@mforney.org>
Date:   Sun, 21 Jun 2020 15:09:51 -0700

Write fspec attributes in consistent order

Diffstat:

Msetup.lua9++++++---
1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/setup.lua b/setup.lua @@ -88,10 +88,13 @@ local function gen(gendir) end if next(pkg.fspec) then local f = assert(io.open(outdir..'/local.fspec', 'w')) - for _, path in ipairs(table.keys(pkg.fspec)) do + for path, fspec in pairs(pkg.fspec) do f:write(('/%s\n'):format(path)) - for k, v in pairs(pkg.fspec[path]) do - f:write(('%s=%s\n'):format(k, v)) + for _, k in ipairs{'type', 'mode', 'source', 'target'} do + local v = fspec[k] + if v then + f:write(('%s=%s\n'):format(k, v)) + end end f:write('\n') end