From f306241725529e6d4e3b4357b91250554d75a512 Mon Sep 17 00:00:00 2001 From: Gordon Hecker Date: Thu, 29 Oct 2009 13:58:56 +0100 Subject: [PATCH] source config: enforce checksum configuration in sha1 attribute in source configuration for all servers except ".". Signed-off-by: Gordon Hecker --- local/files.lua | 4 ++++ 1 file changed, 4 insertions(+) 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") -- 2.39.5