diff --git a/package/luarocks/buildroot.lua b/package/luarocks/buildroot.lua index 2d160f02b6..3c044d89b5 100644 --- a/package/luarocks/buildroot.lua +++ b/package/luarocks/buildroot.lua @@ -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