From: Tobias Ulmer Date: Wed, 26 Oct 2016 18:40:56 +0000 (+0200) Subject: files: for sources, display overall licenses and per file licences X-Git-Tag: e2factory-2.3.15rc1~45 X-Git-Url: https://git.e2factory.org/?a=commitdiff_plain;h=0417a90a13ec545d3fa04f4d71ec66d4ec9563d2;p=e2factory.git files: for sources, display overall licenses and per file licences Signed-off-by: Tobias Ulmer --- diff --git a/plugins/files.lua b/plugins/files.lua index 365762a..ee4e334 100644 --- a/plugins/files.lua +++ b/plugins/files.lua @@ -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