From 0417a90a13ec545d3fa04f4d71ec66d4ec9563d2 Mon Sep 17 00:00:00 2001 From: Tobias Ulmer Date: Wed, 26 Oct 2016 20:40:56 +0200 Subject: [PATCH] files: for sources, display overall licenses and per file licences Signed-off-by: Tobias Ulmer --- plugins/files.lua | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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 -- 2.39.5