summaryrefslogtreecommitdiffstats
path: root/aports/db.lua
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2014-01-28 13:49:35 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2014-01-28 13:49:35 +0000
commit5829fc940e3d9860d85fecc4314feb5bb596f62b (patch)
treef7b5d73c0d495954755dbdd8cbab25a9cbc7fd18 /aports/db.lua
parent1522b9bebfbec8ffe9533c84a2e5717c76b74d5d (diff)
downloadlua-aports-5829fc940e3d9860d85fecc4314feb5bb596f62b.tar.bz2
lua-aports-5829fc940e3d9860d85fecc4314feb5bb596f62b.tar.xz
db: check both arch and libc when checking for relevant aports
Diffstat (limited to 'aports/db.lua')
-rw-r--r--aports/db.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/aports/db.lua b/aports/db.lua
index cfb7491..c614999 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:arch_enabled() and not aport:all_apks_exists() then
+ if aport:enabled() 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:arch_enabled() and not dep:all_apks_exists() then
+ if dep.pkgname ~= pkg.pkgname and dep:enabled() and not dep:all_apks_exists() then
return false
end
end