]> git.e2factory.org Git - e2factory.git/commitdiff
git: use hash_append
authorTobias Ulmer <tu@emlix.com>
Wed, 11 May 2016 17:46:25 +0000 (19:46 +0200)
committerTobias Ulmer <tu@emlix.com>
Wed, 16 Nov 2016 14:41:18 +0000 (15:41 +0100)
Signed-off-by: Tobias Ulmer <tu@emlix.com>
plugins/git.lua

index be39968b6b9ac964de49291b23206587366365f1..376cef05dffd71369a5a3f21f8d56552afff544f 100644 (file)
@@ -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)