From: Tobias Ulmer Date: Wed, 11 May 2016 17:29:54 +0000 (+0200) Subject: svn: use hash_append X-Git-Tag: e2factory-2.3.15rc1~164 X-Git-Url: https://git.e2factory.org/?a=commitdiff_plain;h=34b57940be48b135585776c8d2814f893f026b66;p=e2factory.git svn: use hash_append Signed-off-by: Tobias Ulmer --- diff --git a/plugins/svn.lua b/plugins/svn.lua index b914e44..7c73e9b 100644 --- a/plugins/svn.lua +++ b/plugins/svn.lua @@ -283,9 +283,9 @@ function svn.svn_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()) info = e2tool.info() assert(type(info) == "table") @@ -296,7 +296,7 @@ function svn.svn_source:sourceid(sourceset) if not lid then return false, re end - hash.hash_line(hc, lid) + hash.hash_append(hc, lid) end surl, re = cache.remote_url(info.cache, self._server, self._location) @@ -309,14 +309,14 @@ function svn.svn_source:sourceid(sourceset) return false, re end - hash.hash_line(hc, self._server) - hash.hash_line(hc, self._location) + hash.hash_append(hc, self._server) + hash.hash_append(hc, self._location) if sourceset == "tag" then - hash.hash_line(hc, self._tag) + hash.hash_append(hc, self._tag) argv = { "info", svnurl.."/"..self._tag } elseif sourceset == "branch" then - hash.hash_line(hc, self._branch) + hash.hash_append(hc, self._branch) argv = { "info", svnurl.."/"..self._branch } elseif sourceset == "lazytag" then return false, err.new("svn source does not support lazytag mode") @@ -335,7 +335,7 @@ function svn.svn_source:sourceid(sourceset) if not svnrev or string.len(svnrev) == 0 then return false, err.new("could not find SVN revision") end - hash.hash_line(hc, svnrev) + hash.hash_append(hc, svnrev) self._sourceids[sourceset] = hash.hash_finish(hc)