From: Tobias Ulmer Date: Wed, 11 May 2016 17:46:25 +0000 (+0200) Subject: git: use hash_append X-Git-Tag: e2factory-2.3.15rc1~163 X-Git-Url: https://git.e2factory.org/?a=commitdiff_plain;h=52f16e08ecbfd47b27947c8ab6eeb4088c4fc8f7;p=e2factory.git git: use hash_append Signed-off-by: Tobias Ulmer --- diff --git a/plugins/git.lua b/plugins/git.lua index be39968..376cef0 100644 --- a/plugins/git.lua +++ b/plugins/git.lua @@ -206,9 +206,9 @@ function git.git_source:sourceid(sourceset) end 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()) licences = self:get_licences() for licencename in licences:iter_sorted() do @@ -216,13 +216,13 @@ function git.git_source:sourceid(sourceset) if not lid then return false, re end - hash.hash_line(hc, lid) + hash.hash_append(hc, lid) end - hash.hash_line(hc, self._server) - hash.hash_line(hc, self._location) - hash.hash_line(hc, self._working) - hash.hash_line(hc, id) + hash.hash_append(hc, self._server) + hash.hash_append(hc, self._location) + hash.hash_append(hc, self._working) + hash.hash_append(hc, id) self._commitids[sourceset] = id self._sourceids[sourceset] = hash.hash_finish(hc)