diff options
author | Hisham Muhammad <hisham@gobolinux.org> | 2010-09-09 13:46:01 -0300 |
---|---|---|
committer | Hisham Muhammad <hisham@gobolinux.org> | 2010-09-09 13:46:01 -0300 |
commit | 455818ca4ce650a31a27de7f2a57c04293c2ffe8 (patch) | |
tree | 025b8d759371c8a80591b569ddfd18873b961bcd | |
parent | 5f469a90a4d9f9da83005bc0a7ef60b29e2159fb (diff) | |
download | luarocks-455818ca4ce650a31a27de7f2a57c04293c2ffe8.tar.gz luarocks-455818ca4ce650a31a27de7f2a57c04293c2ffe8.tar.bz2 luarocks-455818ca4ce650a31a27de7f2a57c04293c2ffe8.zip |
Add message after build and install complete.
Indicates where installation took place, and license.
-rw-r--r-- | src/luarocks/build.lua | 8 | ||||
-rw-r--r-- | src/luarocks/install.lua | 8 |
2 files changed, 16 insertions, 0 deletions
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) | |||
230 | ok, err = manif.update_manifest(name, version) | 230 | ok, err = manif.update_manifest(name, version) |
231 | if err then return nil, err end | 231 | if err then return nil, err end |
232 | 232 | ||
233 | local license = "" | ||
234 | if rockspec.description.license then | ||
235 | license = ("(license: "..rockspec.description.license..")") | ||
236 | end | ||
237 | |||
238 | print() | ||
239 | print(name.." "..version.." is now built and installed in "..cfg.root_dir.." "..license) | ||
240 | |||
233 | util.remove_scheduled_function(rollback) | 241 | util.remove_scheduled_function(rollback) |
234 | return true | 242 | return true |
235 | end | 243 | 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) | |||
79 | ok, err = manif.update_manifest(name, version) | 79 | ok, err = manif.update_manifest(name, version) |
80 | if err then return nil, err end | 80 | if err then return nil, err end |
81 | 81 | ||
82 | local license = "" | ||
83 | if rockspec.description.license then | ||
84 | license = ("(license: "..rockspec.description.license..")") | ||
85 | end | ||
86 | |||
87 | print() | ||
88 | print(name.." "..version.." is now installed in "..cfg.root_dir.." "..license) | ||
89 | |||
82 | util.remove_scheduled_function(rollback) | 90 | util.remove_scheduled_function(rollback) |
83 | return true | 91 | return true |
84 | end | 92 | end |