diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2015-04-20 08:06:30 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2015-08-25 08:05:43 +0200 |
commit | 6876aa182214381b504d5ec036374acfd5edebd7 (patch) | |
tree | f0234925f1eb740bb8dff8f208a95bed43d0ea83 | |
parent | f9547c81a19fd1301a52978a7334030214e8ab11 (diff) | |
download | lua-aports-6876aa182214381b504d5ec036374acfd5edebd7.tar.bz2 lua-aports-6876aa182214381b504d5ec036374acfd5edebd7.tar.xz |
db: return nil instead of false to indicate iterator break
-rw-r--r-- | aports/db.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/aports/db.lua b/aports/db.lua index 3f7e715..84e31bc 100644 --- a/aports/db.lua +++ b/aports/db.lua @@ -157,7 +157,7 @@ function Aports:recursive_dependencies(pn) return coroutine.wrap(function() function recurs(pn) if pn == nil or visited[pn] or apkdb[pn] == nil then - return false + return nil end visited[pn] = true local _, p @@ -289,7 +289,7 @@ function Aports:known_deps_exists(pkg) for name in self:each_known_dependency(pkg) do for dep in self:each_pkg_with_name(name) do if dep.pkgname ~= pkg.pkgname and dep:relevant() and not dep:all_apks_exists() then - return false + return nil end end end |