diff options
| author | Michael Forney <mforney@mforney.org> | 2020-06-22 00:10:48 -0700 |
|---|---|---|
| committer | Michael Forney <mforney@mforney.org> | 2020-06-22 22:59:35 -0700 |
| commit | 7d33f5bb5efaf880096e70da74cfb7e830ee7625 (patch) | |
| tree | 3853b96474f613f74b848e8ab7cf1eed14f86b61 /setup.lua | |
| parent | b4ced98b9dd28062a7990592b7723b8916448679 (diff) | |
Add sortedpairs helper function
Diffstat (limited to 'setup.lua')
| -rwxr-xr-x | setup.lua | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -78,8 +78,7 @@ local function gen(gendir) local out = outdir..'/local.fspec' local tmp = out..'.tmp' local f = assert(io.open(tmp, 'w')) - for _, path in ipairs(table.keys(pkg.fspec)) do - local fspec = pkg.fspec[path] + for _, path, fspec in sortedpairs(pkg.fspec) do f:write(('/%s\n'):format(path)) for _, k in ipairs{'type', 'mode', 'source', 'target'} do local v = fspec[k] |
