summaryrefslogtreecommitdiffstats
path: root/aports
diff options
context:
space:
mode:
Diffstat (limited to 'aports')
-rw-r--r--aports/pkg.lua5
1 files changed, 5 insertions, 0 deletions
diff --git a/aports/pkg.lua b/aports/pkg.lua
index b2b25d1..87637d9 100644
--- a/aports/pkg.lua
+++ b/aports/pkg.lua
@@ -98,6 +98,10 @@ function M.apk_file_exists(pkg)
return true
end
+function M.arch_enabled(pkg)
+ return pkg.arch.all or pkg.arch.noarch or pkg.arch[abuild_arch]
+end
+
function M.init(pkg)
pkg.all_deps = M.all_deps
pkg.remote_sources = M.remote_sources
@@ -106,5 +110,6 @@ function M.init(pkg)
pkg.get_apk_file_name = M.get_apk_file_name
pkg.get_apk_file_path = M.get_apk_file_path
pkg.apk_file_exists = M.apk_file_exists
+ pkg.arch_enabled = M.arch_enabled
end
return M