summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2023-08-08 22:28:39 +0800
committerruki <[email protected]>2023-08-08 22:28:39 +0800
commitb30f8296b46a14f4ba4cec9fb0b81a6876d40d0c (patch)
tree9015800f75a6040722f382a0831a46b7f1f60a12
parent6eb5d22f95a757581ce61d45eed015ef4f7da436 (diff)
fix revision
-rw-r--r--xmake/core/package/package.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/core/package/package.lua b/xmake/core/package/package.lua
index 3d7dbb23e..6efded860 100644
--- a/xmake/core/package/package.lua
+++ b/xmake/core/package/package.lua
@@ -466,7 +466,7 @@ function _instance:sourcehash(url_alias)
if not sourcehash then
sourcehash = versions[version_str]
end
- if sourcehash then
+ if sourcehash and #sourcehash == 40 then
sourcehash = sourcehash:lower()
end
return sourcehash