浏览代码

fix is_supported

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

+ 1 - 0
scripts/packages.lua

@@ -5,6 +5,7 @@ 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)
+    opt = opt or {}
     if instance:is_template() then
     if instance:is_template() then
         return false
         return false
     end
     end