]> git.e2factory.org Git - e2factory.git/commitdiff
licence: use hash_append
authorTobias Ulmer <tu@emlix.com>
Wed, 11 May 2016 13:58:33 +0000 (15:58 +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>
local/licence.lua

index c67b38785c4088d7073a41e162df1c3ae049576e..03b42e496cafb2ccd88d3ea6f3b43dbc09143202 100644 (file)
@@ -125,17 +125,17 @@ function licence.licence:licenceid(info)
     e = err.new("calculating licence id failed for licence: %s", self._name)
 
     hc = hash.hash_start()
-    hash.hash_line(hc, self._name)
+    hash.hash_append(hc, self._name)
 
     for file in self:file_iter() do
-        hash.hash_line(hc, file.server)
-        hash.hash_line(hc, file.location)
+        hash.hash_append(hc, file.server)
+        hash.hash_append(hc, file.location)
 
         fileid, re = e2tool.fileid(info, file)
         if not fileid then
             return false, e:cat(re)
         end
-        hash.hash_line(hc, fileid)
+        hash.hash_append(hc, fileid)
     end
 
     self._licenceid, re = hash.hash_finish(hc)