aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorHisham Muhammad <hisham@gobolinux.org>2012-04-24 16:48:57 -0300
committerHisham Muhammad <hisham@gobolinux.org>2012-04-24 16:51:01 -0300
commit72cd4960de07675aa5d651ec2e783ddbff5b7c79 (patch)
tree618b524ecc55311ce8eb999579cc4aa1beda25dc /src
parentbc8b48825c1f9b06cd31800281b489fdb59435e8 (diff)
downloadluarocks-72cd4960de07675aa5d651ec2e783ddbff5b7c79.tar.gz
luarocks-72cd4960de07675aa5d651ec2e783ddbff5b7c79.tar.bz2
luarocks-72cd4960de07675aa5d651ec2e783ddbff5b7c79.zip
Fix for situation where we have lzlib but not lfs
Diffstat (limited to 'src')
-rw-r--r--src/luarocks/tools/zip.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/luarocks/tools/zip.lua b/src/luarocks/tools/zip.lua
index 7534f097..35428d91 100644
--- a/src/luarocks/tools/zip.lua
+++ b/src/luarocks/tools/zip.lua
@@ -109,7 +109,7 @@ local function zipwriter_add(self, file)
109 if not ok then 109 if not ok then
110 err = "error in opening "..file.." in zipfile" 110 err = "error in opening "..file.." in zipfile"
111 else 111 else
112 fin = io.open(file, "rb") 112 fin = io.open(fs.absolute_name(file), "rb")
113 if not fin then 113 if not fin then
114 ok = false 114 ok = false
115 err = "error opening "..file.." for reading" 115 err = "error opening "..file.." for reading"
@@ -192,7 +192,7 @@ function new_zipwriter(name)
192 192
193 local zw = {} 193 local zw = {}
194 194
195 zw.ziphandle = io.open(name, "wb") 195 zw.ziphandle = io.open(fs.absolute_name(name), "wb")
196 if not zw.ziphandle then 196 if not zw.ziphandle then
197 return nil 197 return nil
198 end 198 end