浏览代码

improve test

ruki 11 月之前
父节点
当前提交
9286276074
共有 1 个文件被更改,包括 1 次插入4 次删除
  1. 1 4
      scripts/packages.lua

+ 1 - 4
scripts/packages.lua

@@ -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("install")
+    local script = instance:get(instance:is_fetchonly() and "fetch" or "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