Commit fda6873c authored by Natanael Copa's avatar Natanael Copa

aports.lua: implement foreach_aport()

parent 0b605e17
......@@ -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
......
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