From: Tobias Ulmer Date: Fri, 25 Jul 2014 14:34:58 +0000 (+0200) Subject: show per-file licences X-Git-Tag: e2factory-2.3.15rc1~193 X-Git-Url: https://git.e2factory.org/?a=commitdiff_plain;h=6e2582b8e175b12a439cdd9200ada2ec4d90e47f;p=e2factory.git show per-file licences Signed-off-by: Tobias Ulmer --- diff --git a/plugins/files.lua b/plugins/files.lua index 7c062a3..70e8a49 100644 --- a/plugins/files.lua +++ b/plugins/files.lua @@ -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