diff options
| author | Hisham Muhammad <hisham@gobolinux.org> | 2018-04-06 09:02:11 -0300 |
|---|---|---|
| committer | Hisham Muhammad <hisham@gobolinux.org> | 2018-04-11 14:38:06 -0300 |
| commit | e91d86ed1e41724b857cc80b7f433926a319e2ef (patch) | |
| tree | e4840c87f6488922b2af3cb13e820e807516861b /src | |
| parent | 95f929dfd3618a8efcb7f1bccbda046d623f0a47 (diff) | |
| download | luarocks-e91d86ed1e41724b857cc80b7f433926a319e2ef.tar.gz luarocks-e91d86ed1e41724b857cc80b7f433926a319e2ef.tar.bz2 luarocks-e91d86ed1e41724b857cc80b7f433926a319e2ef.zip | |
show: make --deps aware of namespaces
Diffstat (limited to 'src')
| -rw-r--r-- | src/luarocks/cmd/show.lua | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/luarocks/cmd/show.lua b/src/luarocks/cmd/show.lua index 9f8bc472..bed210d2 100644 --- a/src/luarocks/cmd/show.lua +++ b/src/luarocks/cmd/show.lua | |||
| @@ -108,7 +108,10 @@ function show.command(flags, name, version) | |||
| 108 | elseif flags["issues"] then util.printout(descript.issues_url) | 108 | elseif flags["issues"] then util.printout(descript.issues_url) |
| 109 | elseif flags["labels"] then util.printout(descript.labels and table.concat(descript.labels, "\n")) | 109 | elseif flags["labels"] then util.printout(descript.labels and table.concat(descript.labels, "\n")) |
| 110 | elseif flags["modules"] then util.printout(keys_as_string(minfo.modules, "\n")) | 110 | elseif flags["modules"] then util.printout(keys_as_string(minfo.modules, "\n")) |
| 111 | elseif flags["deps"] then util.printout(keys_as_string(minfo.dependencies or {})) | 111 | elseif flags["deps"] then |
| 112 | for _, dep in ipairs(rockspec.dependencies) do | ||
| 113 | util.printout(tostring(dep)) | ||
| 114 | end | ||
| 112 | elseif flags["rockspec"] then util.printout(rockspec_file) | 115 | elseif flags["rockspec"] then util.printout(rockspec_file) |
| 113 | elseif flags["mversion"] then util.printout(version) | 116 | elseif flags["mversion"] then util.printout(version) |
| 114 | else | 117 | else |
