From: Tobias Ulmer Date: Wed, 11 May 2016 17:28:52 +0000 (+0200) Subject: files: use hash_append X-Git-Tag: e2factory-2.3.15rc1~165 X-Git-Url: https://git.e2factory.org/?a=commitdiff_plain;h=5f9f8db29a444f3aaca547c871df44ca1b3006a3;p=e2factory.git files: use hash_append Signed-off-by: Tobias Ulmer --- diff --git a/plugins/files.lua b/plugins/files.lua index ac4d180..9578d18 100644 --- a/plugins/files.lua +++ b/plugins/files.lua @@ -283,21 +283,21 @@ function files.files_source:sourceid(sourceset --[[always ignored for files]]) assert(info) hc = hash.hash_start() - hash.hash_line(hc, self._name) - hash.hash_line(hc, self._type) - hash.hash_line(hc, self._env:id()) + hash.hash_append(hc, self._name) + hash.hash_append(hc, self._type) + hash.hash_append(hc, self._env:id()) for f in self:file_iter() do local fileid, re = e2tool.fileid(info, f) if not fileid then return false, re end - hash.hash_line(hc, fileid) - hash.hash_line(hc, f.location) - hash.hash_line(hc, f.server) - hash.hash_line(hc, tostring(f.unpack)) - hash.hash_line(hc, tostring(f.patch)) - hash.hash_line(hc, tostring(f.copy)) + hash.hash_append(hc, fileid) + hash.hash_append(hc, f.location) + hash.hash_append(hc, f.server) + hash.hash_append(hc, tostring(f.unpack)) + hash.hash_append(hc, tostring(f.patch)) + hash.hash_append(hc, tostring(f.copy)) -- per file licence list for licencename in f.licences:iter_sorted() do @@ -305,7 +305,7 @@ function files.files_source:sourceid(sourceset --[[always ignored for files]]) if not lid then return false, re end - hash.hash_line(hc, lid) + hash.hash_append(hc, lid) end end