]> git.e2factory.org Git - e2factory.git/commitdiff
files: use hash_append
authorTobias Ulmer <tu@emlix.com>
Wed, 11 May 2016 17:28:52 +0000 (19:28 +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/files.lua

index ac4d180b0be9b73787b2ba464c04381e5ba59c1c..9578d180dcff8ba04c5a5ec714581d11f05ae3e4 100644 (file)
@@ -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