diff options
author | Hisham Muhammad <hisham@gobolinux.org> | 2018-06-12 23:04:14 -0300 |
---|---|---|
committer | Hisham Muhammad <hisham@gobolinux.org> | 2018-06-12 23:05:47 -0300 |
commit | e9396d35720fc17a20ae67d9d2b53d5058f65f39 (patch) | |
tree | 52c3ed8426bcd7000d859107f2a966d1c5514b28 | |
parent | 56150aad8614bef64e25866108a2bf65052f503a (diff) | |
download | luarocks-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.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 |