Skip to content

Commit

Permalink
improve test
Browse files Browse the repository at this point in the history
  • Loading branch information
waruqi committed Sep 18, 2024
1 parent 6fcf6f4 commit 9286276
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions scripts/packages.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9286276

Please sign in to comment.