Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix for situation where we have lzlib but not lfs

  • Loading branch information...
commit a4696dad2be1b2503da7b583512cc967548a6ebf 1 parent 4664cda
@hishamhm hishamhm authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/luarocks/tools/zip.lua
View
4 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
Please sign in to comment.
Something went wrong with that request. Please try again.