From 7d33f5bb5efaf880096e70da74cfb7e830ee7625 Mon Sep 17 00:00:00 2001 From: Michael Forney Date: Mon, 22 Jun 2020 00:10:48 -0700 Subject: Add sortedpairs helper function --- setup.lua | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'setup.lua') diff --git a/setup.lua b/setup.lua index 27984fa0..936a52a0 100755 --- a/setup.lua +++ b/setup.lua @@ -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] -- cgit v1.2.3