aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIgnacio Burgueño <ignacio@users.noreply.github.com>2016-02-08 12:53:02 -0300
committerIgnacio Burgueño <ignacio@users.noreply.github.com>2016-02-08 12:53:02 -0300
commit864d1ae0a3dfbfa22fc14927a893885be870c1e2 (patch)
tree03e594d60b392cb13cb2879a589a757e440cea8b
parentd9ffeaf66f77dc9321a574f6aec2df1785acb8e5 (diff)
parent7158d25512ce6b305160408398bfbfbdfe4dc3de (diff)
downloadluarocks-864d1ae0a3dfbfa22fc14927a893885be870c1e2.tar.gz
luarocks-864d1ae0a3dfbfa22fc14927a893885be870c1e2.tar.bz2
luarocks-864d1ae0a3dfbfa22fc14927a893885be870c1e2.zip
Merge pull request #495 from keplerproject/md5compat
Add compatibility with lhf's lmd5 module.
-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