From ffcd0f2e953e242af5de2ee4b9d52768891ed98b Mon Sep 17 00:00:00 2001 From: Hisham Muhammad Date: Fri, 15 Oct 2010 14:09:30 -0300 Subject: Display the name of file created by 'pack'. (Also fixes the return of the run() command.) --- src/luarocks/pack.lua | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/src/luarocks/pack.lua b/src/luarocks/pack.lua index e2b59a6f..5546a649 100644 --- a/src/luarocks/pack.lua +++ b/src/luarocks/pack.lua @@ -163,9 +163,16 @@ function run(...) return nil, "Argument missing, see help." end + local file, err if arg:match(".*%.rockspec") then - return pack_source_rock(arg) + file, err = pack_source_rock(arg) else - return pack_binary_rock(arg, version) + file, err = pack_binary_rock(arg, version) + end + if err then + return nil, err + else + print("Packed: "..file) + return true end end -- cgit v1.2.3-55-g6feb