From: Tobias Ulmer Date: Tue, 5 Jul 2022 10:47:36 +0000 (+0200) Subject: files: allow hashupdate in files X-Git-Tag: e2factory-2.3.18p1~5 X-Git-Url: https://git.e2factory.org/?a=commitdiff_plain;h=8f712cd59f4cafc68219fcdcdfa570888e556520;p=e2factory.git files: allow hashupdate in files Signed-off-by: Tobias Ulmer --- diff --git a/plugins/files.lua b/plugins/files.lua index 4632f0a..d8fce78 100644 --- a/plugins/files.lua +++ b/plugins/files.lua @@ -1,7 +1,7 @@ --- Files Plugin -- @module plugins.files --- Copyright (C) 2007-2017 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 @@ -247,6 +247,7 @@ function files.files_source:initialize(rawsrc) rc, re = e2lib.vrfy_dict_exp_keys(f, "e2source config", { "copy", + "hashupdate", "licences", "location", "patch", @@ -271,7 +272,7 @@ function files.files_source:initialize(rawsrc) error(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 error(e:cat(re)) end