aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorHisham Muhammad <hisham@gobolinux.org>2010-09-16 14:43:51 -0300
committerHisham Muhammad <hisham@gobolinux.org>2010-09-16 14:43:51 -0300
commit3e31b22e85bd9e3ceeeb88295c9b4f03f576a0ff (patch)
tree81d6443c56975c2ebf0bf797c94658f3249d83f3 /src
parent28f9bb4afb652b4416b68d74a6a52353b0f7b1df (diff)
downloadluarocks-3e31b22e85bd9e3ceeeb88295c9b4f03f576a0ff.tar.gz
luarocks-3e31b22e85bd9e3ceeeb88295c9b4f03f576a0ff.tar.bz2
luarocks-3e31b22e85bd9e3ceeeb88295c9b4f03f576a0ff.zip
Only show detailed field if present in rockspec
(Fix to bug reported by Steve Donovan)
Diffstat (limited to 'src')
-rw-r--r--src/luarocks/show.lua6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/luarocks/show.lua b/src/luarocks/show.lua
index fcdffb9c..82568d13 100644
--- a/src/luarocks/show.lua
+++ b/src/luarocks/show.lua
@@ -110,8 +110,10 @@ function run(...)
110 print() 110 print()
111 print(rockspec.package.." "..rockspec.version.." - "..descript.summary) 111 print(rockspec.package.." "..rockspec.version.." - "..descript.summary)
112 print() 112 print()
113 print(format_text(descript.detailed)) 113 if descript.detailed then
114 print() 114 print(format_text(descript.detailed))
115 print()
116 end
115 if descript.license then 117 if descript.license then
116 print("License: ", descript.license) 118 print("License: ", descript.license)
117 end 119 end