]> git.e2factory.org Git - e2factory.git/commitdiff
files: for sources, display overall licenses and per file licences
authorTobias Ulmer <tu@emlix.com>
Wed, 26 Oct 2016 18:40:56 +0000 (20:40 +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 365762ab79eaae821746e888e5f0c0a2ea45a037..ee4e3349d9f31f661ff3e27a7994df133dd9ed2d 100644 (file)
@@ -313,11 +313,14 @@ function files.files_source:display()
 
     d = {}
     table.insert(d, string.format("type       = %s", self:get_type()))
+    table.insert(d, string.format("licences   = %s",
+        self:get_licences():concat_sorted(" ")))
 
     for f in self:file_iter() do
         s = string.format("file       = %s:%s", f.server, f.location)
         table.insert(d, s)
-        table.insert(d, string.format("licence    = %s", f.licences:concat_sorted(", ")))
+        table.insert(d, string.format("licences   = %s",
+            f.licences:concat_sorted(" ")))
     end
 
     if self._sourceid then