Permalink
Browse files

Fix for situation where we have lzlib but not lfs

  • Loading branch information...
1 parent 4664cda commit a4696dad2be1b2503da7b583512cc967548a6ebf @hishamhm hishamhm committed Apr 24, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/luarocks/tools/zip.lua
@@ -109,7 +109,7 @@ local function zipwriter_add(self, file)
if not ok then
err = "error in opening "..file.." in zipfile"
else
- fin = io.open(file, "rb")
+ fin = io.open(fs.absolute_name(file), "rb")
if not fin then
ok = false
err = "error opening "..file.." for reading"
@@ -192,7 +192,7 @@ function new_zipwriter(name)
local zw = {}
- zw.ziphandle = io.open(name, "wb")
+ zw.ziphandle = io.open(fs.absolute_name(name), "wb")
if not zw.ziphandle then
return nil
end

0 comments on commit a4696da

Please sign in to comment.