aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorPhilipp Janda <siffiejoe@gmx.net>2016-02-07 15:08:00 +0100
committerPhilipp Janda <siffiejoe@gmx.net>2016-02-07 15:08:00 +0100
commit7158d25512ce6b305160408398bfbfbdfe4dc3de (patch)
tree03e594d60b392cb13cb2879a589a757e440cea8b /src
parentd9ffeaf66f77dc9321a574f6aec2df1785acb8e5 (diff)
downloadluarocks-7158d25512ce6b305160408398bfbfbdfe4dc3de.tar.gz
luarocks-7158d25512ce6b305160408398bfbfbdfe4dc3de.tar.bz2
luarocks-7158d25512ce6b305160408398bfbfbdfe4dc3de.zip
Add compatibility with lhf's lmd5 module.
Closes #494.
Diffstat (limited to 'src')
-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