diff options
author | Hisham Muhammad <hisham@gobolinux.org> | 2024-02-19 13:51:09 -0300 |
---|---|---|
committer | Hisham Muhammad <hisham@gobolinux.org> | 2024-02-19 19:34:27 -0300 |
commit | 4e1376fa8840f0055dab5c0e7dbcd8cc1c281b6d (patch) | |
tree | 55cc9670b98d9ee21305e42dfb0f993889f6179a /src | |
parent | c13ff298bdd424d7b7401fce4f0379cda0348af8 (diff) | |
download | luarocks-4e1376fa8840f0055dab5c0e7dbcd8cc1c281b6d.tar.gz luarocks-4e1376fa8840f0055dab5c0e7dbcd8cc1c281b6d.tar.bz2 luarocks-4e1376fa8840f0055dab5c0e7dbcd8cc1c281b6d.zip |
fix(lint): don't crash when missing description
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 | ||