From 5f9f8db29a444f3aaca547c871df44ca1b3006a3 Mon Sep 17 00:00:00 2001 From: Tobias Ulmer Date: Wed, 11 May 2016 19:28:52 +0200 Subject: [PATCH] files: use hash_append Signed-off-by: Tobias Ulmer --- plugins/files.lua | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) 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 -- 2.39.5