]> git.e2factory.org Git - e2factory.git/commitdiff
show per-file licences
authorTobias Ulmer <tu@emlix.com>
Fri, 25 Jul 2014 14:34:58 +0000 (16: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 7c062a3bc2b01f455a8e8e9f1a23774fb440ce12..70e8a49838b08fc15af41d63c6fd83c79bc6b5cb 100644 (file)
@@ -328,11 +328,7 @@ function files.files_source:display()
     for f in self:file_iter() do
         s = string.format("file       = %s:%s", f.server, f.location)
         table.insert(d, s)
-    end
-
-    licences = self:get_licences()
-    for licencename in licences:iter_sorted() do
-        table.insert(d, string.format("licence    = %s", licencename))
+        table.insert(d, string.format("licence    = %s", f.licences:concat_sorted(", ")))
     end
 
     if self._sourceid then