diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/luarocks/cmd/lint.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/luarocks/cmd/lint.lua b/src/luarocks/cmd/lint.lua index 47a3da90..738503ce 100644 --- a/src/luarocks/cmd/lint.lua +++ b/src/luarocks/cmd/lint.lua | |||
@@ -39,8 +39,8 @@ function lint.command(args) | |||
39 | -- Making 'lint' alone be stricter shouldn't be a problem, | 39 | -- Making 'lint' alone be stricter shouldn't be a problem, |
40 | -- because extra-strict checks is what lint-type commands | 40 | -- because extra-strict checks is what lint-type commands |
41 | -- are all about. | 41 | -- are all about. |
42 | if not rs.description.license then | 42 | if not rs.description or not rs.description.license then |
43 | util.printerr("Rockspec has no license field.") | 43 | util.printerr("Rockspec has no description.license field.") |
44 | ok = false | 44 | ok = false |
45 | end | 45 | end |
46 | 46 | ||