package/luarocks: use two spaces indentation in hash file
Signed-off-by: Francois Perrad <francois.perrad@gadz.org> Signed-off-by: Yann E. MORIN <yann.morin.1998@free.fr>
This commit is contained in:
parent
be914b97ad
commit
4ac4aa795a
@ -265,10 +265,10 @@ local function generate_hash (rockspec, lcname, rock_file, licenses, digest)
|
||||
local f = assert(io.open(fname, 'w'))
|
||||
util.printout('write ' .. fname)
|
||||
f:write('# computed by luarocks/buildroot\n')
|
||||
f:write('sha256 ' .. digest[rock_file] .. ' ' .. rock_file .. '\n')
|
||||
f:write('sha256 ' .. digest[rock_file] .. ' ' .. rock_file .. '\n')
|
||||
for i = 1, #licenses do
|
||||
local file = licenses[i]
|
||||
f:write('sha256 ' .. digest[file] .. ' ' .. subdir .. '/' .. file .. '\n')
|
||||
f:write('sha256 ' .. digest[file] .. ' ' .. subdir .. '/' .. file .. '\n')
|
||||
end
|
||||
f:close()
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user