From 3e31b22e85bd9e3ceeeb88295c9b4f03f576a0ff Mon Sep 17 00:00:00 2001 From: Hisham Muhammad Date: Thu, 16 Sep 2010 14:43:51 -0300 Subject: Only show detailed field if present in rockspec (Fix to bug reported by Steve Donovan) --- src/luarocks/show.lua | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src') 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(...) print() print(rockspec.package.." "..rockspec.version.." - "..descript.summary) print() - print(format_text(descript.detailed)) - print() + if descript.detailed then + print(format_text(descript.detailed)) + print() + end if descript.license then print("License: ", descript.license) end -- cgit v1.2.3-55-g6feb