From 7158d25512ce6b305160408398bfbfbdfe4dc3de Mon Sep 17 00:00:00 2001 From: Philipp Janda Date: Sun, 7 Feb 2016 15:08:00 +0100 Subject: Add compatibility with lhf's lmd5 module. Closes #494. --- src/luarocks/fs/lua.lua | 8 ++++++++ 1 file changed, 8 insertions(+) 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 if md5_ok then +-- Support the interface of lmd5 by lhf in addition to md5 by Roberto +-- and the keplerproject. +if not md5.sumhexa and md5.digest then + md5.sumhexa = function(msg) + return md5.digest(msg) + end +end + --- Get the MD5 checksum for a file. -- @param file string: The file to be computed. -- @return string: The MD5 checksum or nil + error -- cgit v1.2.3-55-g6feb