diff options
-rw-r--r-- | src/luarocks/pack.lua | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/luarocks/pack.lua b/src/luarocks/pack.lua index 5d70a854..731f49dd 100644 --- a/src/luarocks/pack.lua +++ b/src/luarocks/pack.lua | |||
@@ -124,8 +124,9 @@ function pack.pack_installed_rock(query, tree) | |||
124 | rock_file = rock_file:gsub("%."..cfg.arch:gsub("%-","%%-").."%.", ".all.") | 124 | rock_file = rock_file:gsub("%."..cfg.arch:gsub("%-","%%-").."%.", ".all.") |
125 | end | 125 | end |
126 | fs.delete(rock_file) | 126 | fs.delete(rock_file) |
127 | if not fs.zip(rock_file, unpack(fs.list_dir())) then | 127 | ok, err = fs.zip(rock_file, unpack(fs.list_dir())) |
128 | return nil, "Failed packing "..rock_file | 128 | if not ok then |
129 | return nil, "Failed packing " .. rock_file .. " - " .. err | ||
129 | end | 130 | end |
130 | fs.pop_dir() | 131 | fs.pop_dir() |
131 | fs.delete(temp_dir) | 132 | fs.delete(temp_dir) |