]> git.e2factory.org Git - e2factory.git/commitdiff
chroot: use hash_append
authorTobias Ulmer <tu@emlix.com>
Mon, 9 May 2016 17:23:49 +0000 (19:23 +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/chroot.lua

index 97c0e9ba3e889eddc631aeeac7bdf5d7a851edc1..3927023a2697e7723c14c8cb48ef3f5c0c4fa2f5 100644 (file)
@@ -145,17 +145,17 @@ function chroot.chroot:chrootgroupid(info)
         self._name)
 
     hc = hash.hash_start()
-    hash.hash_line(hc, self._name)
+    hash.hash_append(hc, self._name)
 
     local fileid
     for f in self:file_iter() do
-        hash.hash_line(hc, f.server)
-        hash.hash_line(hc, f.location)
+        hash.hash_append(hc, f.server)
+        hash.hash_append(hc, f.location)
         fileid, re = e2tool.fileid(info, f)
         if not fileid then
             return false, e:cat(re)
         end
-        hash.hash_line(hc, fileid)
+        hash.hash_append(hc, fileid)
     end
 
     self._chrootgroupid = hash.hash_finish(hc)