diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2013-04-23 07:41:27 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2013-04-23 07:41:27 +0000 |
commit | cf102231ea9d1ab29536c64401543253516e21c7 (patch) | |
tree | 342cc08b8903d28c2bacfed9dd8c1b99355555bf /ap.in | |
parent | 65edee22f2b4b71272ba44490f1987e81e51dd79 (diff) | |
download | abuild-cf102231ea9d1ab29536c64401543253516e21c7.tar.gz abuild-cf102231ea9d1ab29536c64401543253516e21c7.tar.bz2 abuild-cf102231ea9d1ab29536c64401543253516e21c7.tar.xz abuild-cf102231ea9d1ab29536c64401543253516e21c7.zip |
ap: new subcommand: list-apks
Diffstat (limited to 'ap.in')
-rwxr-xr-x | ap.in | 16 |
1 files changed, 14 insertions, 2 deletions
@@ -1,7 +1,7 @@ #!/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 |