From 9286276074e04b6ec3ba6084949e4d60054526a2 Mon Sep 17 00:00:00 2001 From: ruki Date: Thu, 19 Sep 2024 00:36:17 +0800 Subject: [PATCH] improve test --- scripts/packages.lua | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/scripts/packages.lua b/scripts/packages.lua index 1b9b1ce03f6..d6060cc6e32 100644 --- a/scripts/packages.lua +++ b/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