diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2011-03-09 20:55:31 +0100 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2011-03-30 13:11:12 +0200 |
commit | dee681905fe6d164f86626fff9021982ab7bb0b1 (patch) | |
tree | bfe160e748920e382e0254c6e2e18d36783add9f | |
parent | 995797f4a29a035455cfa692c7874d828d29c297 (diff) | |
download | abuild-dee681905fe6d164f86626fff9021982ab7bb0b1.tar.gz abuild-dee681905fe6d164f86626fff9021982ab7bb0b1.tar.bz2 abuild-dee681905fe6d164f86626fff9021982ab7bb0b1.tar.xz abuild-dee681905fe6d164f86626fff9021982ab7bb0b1.zip |
ap: use pairs instead of ipairs
-rwxr-xr-x | ap.in | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -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 |