aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHisham Muhammad <hisham@gobolinux.org>2018-06-12 23:04:14 -0300
committerHisham Muhammad <hisham@gobolinux.org>2018-06-12 23:05:47 -0300
commite9396d35720fc17a20ae67d9d2b53d5058f65f39 (patch)
tree52c3ed8426bcd7000d859107f2a966d1c5514b28
parent56150aad8614bef64e25866108a2bf65052f503a (diff)
downloadluarocks-e9396d35720fc17a20ae67d9d2b53d5058f65f39.tar.gz
luarocks-e9396d35720fc17a20ae67d9d2b53d5058f65f39.tar.bz2
luarocks-e9396d35720fc17a20ae67d9d2b53d5058f65f39.zip
Ensure that unknown md5 modules are not erroneously detected
Closes #805.
-rw-r--r--src/luarocks/fs/lua.lua3
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
744end 744end
745 745
746if 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)
757end 759end
758 760
759end 761end
762end
760 763
761--------------------------------------------------------------------- 764---------------------------------------------------------------------
762-- POSIX functions 765-- POSIX functions