From 6b1c4f74ea36e70f73de7cc231849b142f8acae7 Mon Sep 17 00:00:00 2001 From: Tobias Ulmer Date: Tue, 5 Jul 2022 12:39:21 +0200 Subject: [PATCH] chroot: allow hashupdate for chroot config files Signed-off-by: Tobias Ulmer --- local/chroot.lua | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/local/chroot.lua b/local/chroot.lua index 1084374..a7dce74 100644 --- a/local/chroot.lua +++ b/local/chroot.lua @@ -1,7 +1,7 @@ --- Chroot config module. -- @module local.chroot --- Copyright (C) 2007-2016 emlix GmbH, see file AUTHORS +-- Copyright (C) 2007-2022 emlix GmbH, see file AUTHORS -- -- This file is part of e2factory, the emlix embedded build system. -- For more information see http://www.e2factory.org @@ -48,6 +48,7 @@ local strict = require("strict") -- @field location File location. -- @field sha1 SHA1 sum, optional -- @field sha256 SHA256 sum, optional +-- @field hashupdate Boolean flag, optional --- Default chroot group names applied to all results. Locked. chroot.groups_default = {} @@ -259,6 +260,7 @@ function chroot.load_chroot_config() "location", "sha1", "sha256", + "hashupdate", }) if not rc then return false, e:cat(re) @@ -270,7 +272,7 @@ function chroot.load_chroot_config() return false, e:cat(re) end - rc, re = file:validate_set_checksums(f.sha1, f.sha256) + rc, re = file:validate_set_checksums(f.sha1, f.sha256, f.hashupdate) if not rc then e:cat(ferr) return false, e:cat(re) -- 2.39.5