]> git.e2factory.org Git - e2factory.git/commitdiff
files: add checksum verification to toresult() / collect_project
authorTobias Ulmer <tu@emlix.com>
Wed, 30 Nov 2016 16:28:32 +0000 (17:28 +0100)
committerTobias Ulmer <tu@emlix.com>
Wed, 30 Nov 2016 16:28:32 +0000 (17:28 +0100)
Signed-off-by: Tobias Ulmer <tu@emlix.com>
Changelog
plugins/files.lua

index 76d5000f3e7855d22ed0df8e040481326807e160..78c40b19e1b067a99b76a58be3a6488bb2d81b73 100644 (file)
--- 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
 
index e215caef6cd5b8aadf4484830940827258e5446e..f6134f2c8e3b163a987d2fa90a34bb999b371907 100644 (file)
@@ -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())