diff options
-rw-r--r-- | aports/db.lua | 4 | ||||
-rw-r--r-- | aports/pkg.lua | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/aports/db.lua b/aports/db.lua index c614999..d653990 100644 --- a/aports/db.lua +++ b/aports/db.lua @@ -235,7 +235,7 @@ end function Aports:each_need_build() return coroutine.wrap(function() for aport in self:each_aport() do - if aport:enabled() and not aport:all_apks_exists() then + if aport:relevant() and not aport:all_apks_exists() then coroutine.yield(aport) end end @@ -279,7 +279,7 @@ end 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:enabled() and not dep:all_apks_exists() then + if dep.pkgname ~= pkg.pkgname and dep:relevant() and not dep:all_apks_exists() then return false end end diff --git a/aports/pkg.lua b/aports/pkg.lua index 66f94cc..b6c6aad 100644 --- a/aports/pkg.lua +++ b/aports/pkg.lua @@ -95,7 +95,7 @@ function M.libc_enabled(pkg) return not pkg.options["!libc_"..libc] end -function M.enabled(pkg) +function M.relevant(pkg) return pkg:arch_enabled() and pkg:libc_enabled() end |