check_site.lua 348 B

123456789101112
  1. need_string 'autoupdater.branch'
  2. local function check_branch(k, _)
  3. local prefix = string.format('autoupdater.branches[%q].', k)
  4. need_string(prefix .. 'name')
  5. need_string_array(prefix .. 'mirrors')
  6. need_number(prefix .. 'good_signatures')
  7. need_string_array(prefix .. 'pubkeys')
  8. end
  9. need_table('autoupdater.branches', check_branch)