From: Tobias Ulmer Date: Mon, 9 May 2016 17:23:49 +0000 (+0200) Subject: chroot: use hash_append X-Git-Tag: e2factory-2.3.15rc1~170 X-Git-Url: https://git.e2factory.org/?a=commitdiff_plain;h=7928046f5d5aed9911295beaa0bfc90ca982f41c;p=e2factory.git chroot: use hash_append Signed-off-by: Tobias Ulmer --- diff --git a/local/chroot.lua b/local/chroot.lua index 97c0e9b..3927023 100644 --- a/local/chroot.lua +++ b/local/chroot.lua @@ -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)