From 7d009de7a140e4e3807e495883a515c0ae3f470f Mon Sep 17 00:00:00 2001 From: Tobias Ulmer Date: Wed, 30 Nov 2016 17:28:32 +0100 Subject: [PATCH] files: add checksum verification to toresult() / collect_project Signed-off-by: Tobias Ulmer --- Changelog | 1 + plugins/files.lua | 6 +++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/Changelog b/Changelog index 76d5000..78c40b1 100644 --- a/Changelog +++ b/Changelog @@ -1,4 +1,5 @@ NEXT: + * Fix checksum verification of some file sources used by collect_project * Fix SourceID calculation in files plugin under artificial conditions * Remove error message when an optional tool isn't present diff --git a/plugins/files.lua b/plugins/files.lua index e215cae..f6134f2 100644 --- a/plugins/files.lua +++ b/plugins/files.lua @@ -601,7 +601,11 @@ function files.toresult(info, sourcename, sourceset, directory) out = { ".PHONY: place\n\nplace:\n" } for file in src:file_iter() do - e2lib.logf(4, "export file: %s", file:location()) + rc, re = file:checksum_verify() + if not rc then + return false, e:cat(re) + end + local destdir = string.format("%s/%s", directory, source) local destname = e2lib.basename(file:location()) -- 2.39.5