diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2011-08-22 09:28:40 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2011-08-22 09:28:40 +0000 |
commit | fda6873c5a1c92363685d5dcc319d8e776a8f692 (patch) | |
tree | e3fa3576f7cec60227648183281828c23785e151 /aports.lua | |
parent | 0b605e179eaede6f1d22abf63147a7e5059a26b5 (diff) | |
download | abuild-fda6873c5a1c92363685d5dcc319d8e776a8f692.tar.gz abuild-fda6873c5a1c92363685d5dcc319d8e776a8f692.tar.bz2 abuild-fda6873c5a1c92363685d5dcc319d8e776a8f692.tar.xz abuild-fda6873c5a1c92363685d5dcc319d8e776a8f692.zip |
aports.lua: implement foreach_aport()
Diffstat (limited to 'aports.lua')
-rwxr-xr-x | aports.lua | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -207,6 +207,16 @@ function Aports:foreach_pkg(pkg, f) end end +function Aports:foreach_aport(f) + self:foreach(function(pkgname) + self:foreach_pkg(pkgname, function(i, pkg) + if pkgname == pkg.pkgname then + f(pkg) + end + end) + end) +end + function new(repodirs) local h = Aports h.repodirs = repodirs |