From 72cd4960de07675aa5d651ec2e783ddbff5b7c79 Mon Sep 17 00:00:00 2001 From: Hisham Muhammad Date: Tue, 24 Apr 2012 16:48:57 -0300 Subject: Fix for situation where we have lzlib but not lfs --- src/luarocks/tools/zip.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') 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) 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 -- cgit v1.2.3-55-g6feb