]> git.e2factory.org Git - e2factory.git/commitdiff
Fix operator precedence in licence validation
authorTobias Ulmer <tu@emlix.com>
Wed, 29 Jan 2014 14:00:37 +0000 (15:00 +0100)
committerTobias Ulmer <tu@emlix.com>
Tue, 25 Mar 2014 17:07:15 +0000 (18:07 +0100)
Signed-off-by: Tobias Ulmer <tu@emlix.com>
local/e2tool.lua

index 1f00f947253a7bc1e7565d59b940aa0c0d53506d..afc2ba3558bb9b407e19c2afd0e774adff4b6573 100644 (file)
@@ -1573,7 +1573,7 @@ local function check_licence(info, l)
     end
     if not lic.files then
         e:append("no files attribute")
-    elseif not type(lic.files) == "table" then
+    elseif type(lic.files) ~= "table" then
         e:append("files attribute is not a table")
     else
         for _,f in ipairs(lic.files) do