aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHisham <hisham@gobolinux.org>2016-12-02 08:49:39 -0200
committerHisham <hisham@gobolinux.org>2016-12-02 08:49:39 -0200
commit3da68f76dcb45c2773c4092eac7ed98e35750a9c (patch)
treed7501837d15bad8f2cbe037e6af1407ad15c1420
parent19c7bbd53c1ef649bb5d0f0ba8ac7d583a72f18f (diff)
downloadluarocks-3da68f76dcb45c2773c4092eac7ed98e35750a9c.tar.gz
luarocks-3da68f76dcb45c2773c4092eac7ed98e35750a9c.tar.bz2
luarocks-3da68f76dcb45c2773c4092eac7ed98e35750a9c.zip
Avoid overwriting variable.
-rw-r--r--src/luarocks/fs/lua.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/luarocks/fs/lua.lua b/src/luarocks/fs/lua.lua
index e4c6ca05..7fe6c7f8 100644
--- a/src/luarocks/fs/lua.lua
+++ b/src/luarocks/fs/lua.lua
@@ -489,10 +489,10 @@ end
489 489
490if unzip_ok then 490if unzip_ok then
491--- Uncompress files from a .zip archive. 491--- Uncompress files from a .zip archive.
492-- @param zipfile string: pathname of .zip archive to be extracted. 492-- @param filename string: pathname of .zip archive to be extracted.
493-- @return boolean: true on success, false on failure. 493-- @return boolean: true on success, false on failure.
494function fs_lua.unzip(zipfile) 494function fs_lua.unzip(filename)
495 local zipfile, err = luazip.open(zipfile) 495 local zipfile, err = luazip.open(filename)
496 if not zipfile then return nil, err end 496 if not zipfile then return nil, err end
497 local files = zipfile:files() 497 local files = zipfile:files()
498 local file = files() 498 local file = files()