From: Gordon Hecker Date: Thu, 29 Oct 2009 12:58:56 +0000 (+0100) Subject: source config: enforce checksum configuration in sha1 attribute in source X-Git-Tag: e2factory-2.3.2rc1~25 X-Git-Url: https://git.e2factory.org/?a=commitdiff_plain;h=f306241725529e6d4e3b4357b91250554d75a512;p=e2factory.git source config: enforce checksum configuration in sha1 attribute in source configuration for all servers except ".". Signed-off-by: Gordon Hecker --- diff --git a/local/files.lua b/local/files.lua index b47b350..83bbd4b 100644 --- a/local/files.lua +++ b/local/files.lua @@ -82,6 +82,10 @@ function files.validate_source(info, sourcename) if not f.location then e:append("source has file entry without `location' attribute") end + if f.server ~= info.root_server_name and not f.sha1 then + e:append("source has file entry for remote file without `sha1` ".. + "attribute") + end if not (f.unpack or f.copy or f.patch) then e:append("source has file entry without `unpack, copy or patch' " .. "attribute")