Files
linuxkit/licensing/packages.lua
Justin Cormack dfd70a1d1d include all source not just GPL
Signed-off-by: Justin Cormack <justin.cormack@docker.com>
2016-03-22 11:23:55 +00:00

17 lines
216 B
Lua
Executable File

#!/usr/bin/lua
p = {}
f = io.open("/lib/apk/db/installed")
for line in f:lines() do
if line == "" then
print(p.P, p.L, p.c)
p = {}
else
k, v = line:match("(%a):(.*)")
if k then
p[k] = v
end
end
end