diff options
Diffstat (limited to 'aports')
-rw-r--r-- | aports/abuild.lua | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/aports/abuild.lua b/aports/abuild.lua index a9fe8cc..1626b29 100644 --- a/aports/abuild.lua +++ b/aports/abuild.lua @@ -23,4 +23,14 @@ function M.get_conf(var) return abuild_conf[var] end +function M.get_arch() + if abuild_conf.CARCH then + return abuild_conf.CARCH + end + local f = io.popen(" . "..M.functions..' ; echo -n "$CARCH"') + abuild_conf.CARCH = f:read("*all") + f:close() + return abuild_conf.CARCH +end + return M |