summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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