From 4aa581c38816fc53a8674c9d92bed69d8010f4cc Mon Sep 17 00:00:00 2001 From: Tobias Ulmer Date: Tue, 5 Jul 2022 12:46:11 +0200 Subject: [PATCH] licence: allow hashupdate for licence config files Signed-off-by: Tobias Ulmer --- local/licence.lua | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/local/licence.lua b/local/licence.lua index 25c7853..b60dbe7 100644 --- a/local/licence.lua +++ b/local/licence.lua @@ -1,7 +1,7 @@ --- Licence config module. -- @module local.licence --- Copyright (C) 2007-2014 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 @@ -191,6 +191,7 @@ function licence.load_licence_config() "location", "sha1", "sha256", + "hashupdate", }) if not rc then e:cat(lerr) @@ -209,7 +210,7 @@ function licence.load_licence_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(lerr) return false, e:cat(re) -- 2.39.5