From 6e2582b8e175b12a439cdd9200ada2ec4d90e47f Mon Sep 17 00:00:00 2001 From: Tobias Ulmer Date: Fri, 25 Jul 2014 16:34:58 +0200 Subject: [PATCH] show per-file licences Signed-off-by: Tobias Ulmer --- plugins/files.lua | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) 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 -- 2.39.5