From 455818ca4ce650a31a27de7f2a57c04293c2ffe8 Mon Sep 17 00:00:00 2001 From: Hisham Muhammad Date: Thu, 9 Sep 2010 13:46:01 -0300 Subject: Add message after build and install complete. Indicates where installation took place, and license. --- src/luarocks/build.lua | 8 ++++++++ src/luarocks/install.lua | 8 ++++++++ 2 files changed, 16 insertions(+) diff --git a/src/luarocks/build.lua b/src/luarocks/build.lua index c6c3a002..b7386688 100644 --- a/src/luarocks/build.lua +++ b/src/luarocks/build.lua @@ -230,6 +230,14 @@ function build_rockspec(rockspec_file, need_to_fetch, minimal_mode) ok, err = manif.update_manifest(name, version) if err then return nil, err end + local license = "" + if rockspec.description.license then + license = ("(license: "..rockspec.description.license..")") + end + + print() + print(name.." "..version.." is now built and installed in "..cfg.root_dir.." "..license) + util.remove_scheduled_function(rollback) return true end diff --git a/src/luarocks/install.lua b/src/luarocks/install.lua index 74602f47..4bb073dc 100644 --- a/src/luarocks/install.lua +++ b/src/luarocks/install.lua @@ -79,6 +79,14 @@ function install_binary_rock(rock_file) ok, err = manif.update_manifest(name, version) if err then return nil, err end + local license = "" + if rockspec.description.license then + license = ("(license: "..rockspec.description.license..")") + end + + print() + print(name.." "..version.." is now installed in "..cfg.root_dir.." "..license) + util.remove_scheduled_function(rollback) return true end -- cgit v1.2.3-55-g6feb