ap: use pairs instead of ipairs
This commit is contained in:
parent
995797f4a2
commit
dee681905f
8
ap.in
8
ap.in
|
@ -13,7 +13,7 @@ subcmd.revdep = {
|
|||
for i = 2, #opts do
|
||||
local pkg = opts[i]
|
||||
local _,p
|
||||
for _,p in ipairs(rev[pkg] or {}) do
|
||||
for _,p in pairs(rev[pkg] or {}) do
|
||||
print(p.pkgname)
|
||||
end
|
||||
end
|
||||
|
@ -45,12 +45,12 @@ subcmd.recursdeps = {
|
|||
end
|
||||
visited[pn] = true
|
||||
local i,d, p
|
||||
for i,p in ipairs(apkdb[pn]) do
|
||||
for i,p in pairs(apkdb[pn]) do
|
||||
local _, d
|
||||
for _, d in ipairs(p.depends) do
|
||||
for _, d in pairs(p.depends) do
|
||||
recurs(d)
|
||||
end
|
||||
for _, d in ipairs(p.makedepends) do
|
||||
for _, d in pairs(p.makedepends) do
|
||||
recurs(d)
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue