]> git.e2factory.org Git - e2factory.git/commitdiff
licence: allow hashupdate for licence config files
authorTobias Ulmer <tu@emlix.com>
Tue, 5 Jul 2022 10:46:11 +0000 (12:46 +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>
local/licence.lua

index 25c785312fa405ec38f8f77705cb923b1631316d..b60dbe726591da00c2cb7df9a5b485be9cf680e6 100644 (file)
@@ -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)