Files
linuxkit/licensing/gpl.lua
2016-03-18 15:19:56 +00:00

19 lines
259 B
Lua
Executable File

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