From b4ced98b9dd28062a7990592b7723b8916448679 Mon Sep 17 00:00:00 2001 From: Michael Forney Date: Mon, 22 Jun 2020 11:57:42 -0700 Subject: Generate root.perms from fspec --- ninja.lua | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'ninja.lua') diff --git a/ninja.lua b/ninja.lua index 210a45f2..6cf3cabf 100644 --- a/ninja.lua +++ b/ninja.lua @@ -435,9 +435,6 @@ function gitfile(path, mode, src) args=perm, }) table.insert(pkg.inputs.index, out) - if mode ~= '0644' and mode ~= '0755' then - table.insert(pkg.perms, perm) - end end function file(path, mode, src) @@ -458,12 +455,10 @@ function dir(path, mode) if pkg.gendir:hasprefix('pkg/') and not fs(pkg.name, path) then return end - mode = ('%04o'):format(tonumber(mode, 8)) pkg.fspec[path] = { type='dir', - mode=mode, + mode=('%04o'):format(tonumber(mode, 8)), } - table.insert(pkg.perms, ('04%s %s'):format(mode, path)) end function sym(path, target) -- cgit v1.2.3