summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorruki <[email protected]>2020-09-15 23:44:49 +0800
committerruki <[email protected]>2020-09-15 23:44:49 +0800
commitb12caef38876cac6b31c7b96e7033464606022f4 (patch)
tree45ecfa25d2b74f3cb6594b32c139b9546cad4d25
parent20aaf1318dfe5c71a62a627dbf7031379379e074 (diff)
fix check patch sha256
-rw-r--r--xmake/actions/require/impl/action/patch_sources.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/xmake/actions/require/impl/action/patch_sources.lua b/xmake/actions/require/impl/action/patch_sources.lua
index e0874ed77..f1be7eb60 100644
--- a/xmake/actions/require/impl/action/patch_sources.lua
+++ b/xmake/actions/require/impl/action/patch_sources.lua
@@ -36,7 +36,7 @@ function _check_sha256(patch_hash, patch_file)
--
local tmpfile = os.tmpfile(patch_file)
os.cp(patch_file, tmpfile)
- io.gsub(tmpfile, '\n', '\r\n')
+ io.gsub(tmpfile, '\r\n', '\n')
ok = (patch_hash == hash.sha256(tmpfile))
os.rm(tmpfile)
end