Commit cf102231 authored by Natanael Copa's avatar Natanael Copa

ap: new subcommand: list-apks

parent 65edee22
#!/usr/bin/lua
require("aports")
require("lfs")
aports = require("aports")
lfs = require("lfs")
local db
......@@ -130,6 +130,18 @@ subcmd["build-list"] = {
end
}
subcmd["list-apks"] = {
desc = "List all apk files",
usage = "",
run = function()
db:foreach(function(k)
db:foreach_pkg(k, function(_, p)
print(aports.get_apk_filename(p))
end)
end)
end
}
function print_usage()
io.write("usage: ap -d <DIR> SUBCOMMAND [options]\n\nSubcommands are:\n")
local k,v
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment