improve test

pull/5277/head
ruki 2 months ago
parent 6fcf6f42c6
commit 9286276074
  1. 5
      scripts/packages.lua

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

Loading…
Cancel
Save