aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/luarocks/fs/lua.lua8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/luarocks/fs/lua.lua b/src/luarocks/fs/lua.lua
index a444f014..1d303c67 100644
--- a/src/luarocks/fs/lua.lua
+++ b/src/luarocks/fs/lua.lua
@@ -728,6 +728,14 @@ end
728 728
729if md5_ok then 729if md5_ok then
730 730
731-- Support the interface of lmd5 by lhf in addition to md5 by Roberto
732-- and the keplerproject.
733if not md5.sumhexa and md5.digest then
734 md5.sumhexa = function(msg)
735 return md5.digest(msg)
736 end
737end
738
731--- Get the MD5 checksum for a file. 739--- Get the MD5 checksum for a file.
732-- @param file string: The file to be computed. 740-- @param file string: The file to be computed.
733-- @return string: The MD5 checksum or nil + error 741-- @return string: The MD5 checksum or nil + error