summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2014-01-28 15:03:47 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2014-01-28 15:04:13 +0000
commitbbcbe2e12776621df2b98910efa25af113f4d966 (patch)
treebaba262e684c64a2f6d0b8a2570b1a7b1a85b9d5
parent5829fc940e3d9860d85fecc4314feb5bb596f62b (diff)
downloadlua-aports-bbcbe2e12776621df2b98910efa25af113f4d966.tar.bz2
lua-aports-bbcbe2e12776621df2b98910efa25af113f4d966.tar.xz
pkg: rename enabled() to relevant()
-rw-r--r--aports/db.lua4
-rw-r--r--aports/pkg.lua2
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