From: Tobias Ulmer Date: Wed, 26 Oct 2016 18:42:33 +0000 (+0200) Subject: files: fix sourceid calculation in rare licences configuration X-Git-Tag: e2factory-2.3.15rc1~44 X-Git-Url: https://git.e2factory.org/?a=commitdiff_plain;h=f8c62b130935d0f62be64d5f9292d9e0fc45439b;p=e2factory.git files: fix sourceid calculation in rare licences configuration Signed-off-by: Tobias Ulmer --- 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