|
|
@ -5,14 +5,11 @@ import("private.core.base.select_script") |
|
|
|
|
|
|
|
|
|
|
|
-- is supported platform and architecture? |
|
|
|
-- is supported platform and architecture? |
|
|
|
function is_supported(instance, plat, arch, opt) |
|
|
|
function is_supported(instance, plat, arch, opt) |
|
|
|
|
|
|
|
|
|
|
|
-- ignore template package |
|
|
|
|
|
|
|
if instance:is_template() then |
|
|
|
if instance:is_template() then |
|
|
|
return false |
|
|
|
return false |
|
|
|
end |
|
|
|
end |
|
|
|
|
|
|
|
|
|
|
|
-- has install script? |
|
|
|
local script = instance:get(instance:is_fetchonly() and "fetch" or "install") |
|
|
|
local script = instance:get("install") |
|
|
|
|
|
|
|
if not select_script(script, {plat = plat, arch = arch}) then |
|
|
|
if not select_script(script, {plat = plat, arch = arch}) then |
|
|
|
return false |
|
|
|
return false |
|
|
|
end |
|
|
|
end |
|
|
|