summaryrefslogtreecommitdiff
path: root/xmake/core/package
diff options
context:
space:
mode:
authorruki <[email protected]>2020-11-05 22:39:29 +0800
committerruki <[email protected]>2020-11-05 22:39:29 +0800
commit360933b005ee28f911d2364075691f5123c6006a (patch)
tree7e548051a54420a686c63a8d268786ada53c9bf8 /xmake/core/package
parent46a47d31e91c44550bc3feb3d80760b120cad4a2 (diff)
disable verify for package
Diffstat (limited to 'xmake/core/package')
-rw-r--r--xmake/core/package/package.lua10
1 files changed, 10 insertions, 0 deletions
diff --git a/xmake/core/package/package.lua b/xmake/core/package/package.lua
index 463cebebc..934958ec4 100644
--- a/xmake/core/package/package.lua
+++ b/xmake/core/package/package.lua
@@ -729,6 +729,16 @@ function _instance:optional()
return requireinfo and requireinfo.optional or false
end
+-- verify sha256sum and versions?
+function _instance:verify()
+ local requireinfo = self:requireinfo()
+ local verify = requireinfo and requireinfo.verify
+ if verify == nil then
+ verify = true
+ end
+ return verify
+end
+
-- is debug package?
function _instance:debug()
return self:config("debug")