]> git.e2factory.org Git - e2factory.git/commitdiff
fix configuration validation for files sources
authorGordon Hecker <gh@emlix.com>
Fri, 2 Oct 2009 13:03:11 +0000 (15:03 +0200)
committerGordon Hecker <gh@emlix.com>
Fri, 2 Oct 2009 13:05:17 +0000 (15:05 +0200)
Signed-off-by: Gordon Hecker <gh@emlix.com>
Changelog
local/files.lua

index e6459fd3f8e8c5ca05a1b05b3b0ca14ff0828eac..21644f2d473d4ccd976f5cf182645e6c38efc573 100644 (file)
--- a/Changelog
+++ b/Changelog
@@ -7,6 +7,7 @@ NEXT:
  * hardlinks are used when preparing the result tarball, if possible, to
    improve performance
  * logfiles are rotated instead of deleting them
+ * a bug in configuration validation for files sources was fixed
  * unused code was removed
  * the faq section in the documentation was extended
  * outdated documentation was removed
index 0b825a8066342233da157af81051e579005f817b..bd7b7eacf9f030142422883ed7218f73916e0473 100644 (file)
@@ -50,6 +50,11 @@ function files.validate_source(info, sourcename)
   end
   if src.file then
     for _,f in pairs(src.file) do
+      if type(f) ~= "table" then
+       e:append("%s: source has invalid file entry in `file' attribute",
+                                                               sourcename)
+       break
+      end
       -- catch deprecated configuration
       if f.name then
        e:append("source has file entry with `name' attribute")