]> git.e2factory.org Git - e2factory.git/commitdiff
files: get_licences() already returns a copy
authorTobias Ulmer <tu@emlix.com>
Wed, 26 Oct 2016 15:34:20 +0000 (17:34 +0200)
committerTobias Ulmer <tu@emlix.com>
Wed, 16 Nov 2016 14:41:18 +0000 (15:41 +0100)
Signed-off-by: Tobias Ulmer <tu@emlix.com>
plugins/files.lua

index 54016ac1c5552b8372601805e00720a83764cd37..68b9bcd869a106ff881e457d2e28694bd510f62f 100644 (file)
@@ -171,7 +171,7 @@ function files.files_source:initialize(rawsrc)
         local llist, licences
 
         if f.licences == nil then
-            f.licences = self:get_licences():copy()
+            f.licences = self:get_licences()
         elseif type(f.licences == "table") then
             rc, re = e2lib.vrfy_listofstrings(f.licences, laerr, true, false)
             if not rc then