From f8c62b130935d0f62be64d5f9292d9e0fc45439b Mon Sep 17 00:00:00 2001 From: Tobias Ulmer Date: Wed, 26 Oct 2016 20:42:33 +0200 Subject: [PATCH] files: fix sourceid calculation in rare licences configuration Signed-off-by: Tobias Ulmer --- plugins/files.lua | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/plugins/files.lua b/plugins/files.lua index ee4e334..2ca0dab 100644 --- a/plugins/files.lua +++ b/plugins/files.lua @@ -277,6 +277,15 @@ function files.files_source:sourceid(sourceset --[[always ignored for files]]) hash.hash_append(hc, self._type) hash.hash_append(hc, self._env:id()) + -- all licences + for licencename in self:get_licences():iter_sorted() do + local lid, re = licence.licences[licencename]:licenceid(info) + if not lid then + return false, re + end + hash.hash_append(hc, lid) + end + for f in self:file_iter() do local fileid, re = e2tool.fileid(info, f) if not fileid then -- 2.39.5