diff options
| author | Ignacio Burgueño <ignacio@users.noreply.github.com> | 2016-02-08 12:53:02 -0300 |
|---|---|---|
| committer | Ignacio Burgueño <ignacio@users.noreply.github.com> | 2016-02-08 12:53:02 -0300 |
| commit | 864d1ae0a3dfbfa22fc14927a893885be870c1e2 (patch) | |
| tree | 03e594d60b392cb13cb2879a589a757e440cea8b | |
| parent | d9ffeaf66f77dc9321a574f6aec2df1785acb8e5 (diff) | |
| parent | 7158d25512ce6b305160408398bfbfbdfe4dc3de (diff) | |
| download | luarocks-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.lua | 8 |
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 | ||
| 729 | if md5_ok then | 729 | if md5_ok then |
| 730 | 730 | ||
| 731 | -- Support the interface of lmd5 by lhf in addition to md5 by Roberto | ||
| 732 | -- and the keplerproject. | ||
| 733 | if not md5.sumhexa and md5.digest then | ||
| 734 | md5.sumhexa = function(msg) | ||
| 735 | return md5.digest(msg) | ||
| 736 | end | ||
| 737 | end | ||
| 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 |
