diff options
-rw-r--r-- | src/luarocks/fs/lua.lua | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/luarocks/fs/lua.lua b/src/luarocks/fs/lua.lua index 69c75cec..ede7884a 100644 --- a/src/luarocks/fs/lua.lua +++ b/src/luarocks/fs/lua.lua | |||
@@ -743,6 +743,8 @@ if not md5.sumhexa and md5.digest then | |||
743 | end | 743 | end |
744 | end | 744 | end |
745 | 745 | ||
746 | if md5.sumhexa then | ||
747 | |||
746 | --- Get the MD5 checksum for a file. | 748 | --- Get the MD5 checksum for a file. |
747 | -- @param file string: The file to be computed. | 749 | -- @param file string: The file to be computed. |
748 | -- @return string: The MD5 checksum or nil + error | 750 | -- @return string: The MD5 checksum or nil + error |
@@ -757,6 +759,7 @@ function fs_lua.get_md5(file) | |||
757 | end | 759 | end |
758 | 760 | ||
759 | end | 761 | end |
762 | end | ||
760 | 763 | ||
761 | --------------------------------------------------------------------- | 764 | --------------------------------------------------------------------- |
762 | -- POSIX functions | 765 | -- POSIX functions |