From a075e94ddda2855f7254845971c7b00666292234 Mon Sep 17 00:00:00 2001 From: Hisham Muhammad Date: Sat, 17 Feb 2024 02:20:39 -0300 Subject: fix(build): report if zip is unavailable for --pack-binary-rock Fixes #1414. --- src/luarocks/pack.lua | 5 +++-- 1 file 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) rock_file = rock_file:gsub("%."..cfg.arch:gsub("%-","%%-").."%.", ".all.") end fs.delete(rock_file) - if not fs.zip(rock_file, unpack(fs.list_dir())) then - return nil, "Failed packing "..rock_file + ok, err = fs.zip(rock_file, unpack(fs.list_dir())) + if not ok then + return nil, "Failed packing " .. rock_file .. " - " .. err end fs.pop_dir() fs.delete(temp_dir) -- cgit v1.2.3-55-g6feb