Skip to content
Snippets Groups Projects
Commit fda6873c authored by Natanael Copa's avatar Natanael Copa
Browse files

aports.lua: implement foreach_aport()

parent 0b605e17
No related merge requests found
...@@ -207,6 +207,16 @@ function Aports:foreach_pkg(pkg, f) ...@@ -207,6 +207,16 @@ function Aports:foreach_pkg(pkg, f)
end end
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) function new(repodirs)
local h = Aports local h = Aports
h.repodirs = repodirs h.repodirs = repodirs
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment