]> git.e2factory.org Git - e2factory.git/commitdiff
files: allow hashupdate in files
authorTobias Ulmer <tu@emlix.com>
Tue, 5 Jul 2022 10:47:36 +0000 (12:47 +0200)
committerTobias Ulmer <tu@emlix.com>
Wed, 31 Aug 2022 22:22:17 +0000 (00:22 +0200)
Signed-off-by: Tobias Ulmer <tu@emlix.com>
plugins/files.lua

index 4632f0aadcb0d7acbe9942a7d630571815f6b85f..d8fce78994db9680c7c15a374740b612557ea30c 100644 (file)
@@ -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