check_site.lua 388 B

12345678910111213
  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 .. 'probability')
  7. need_number(prefix .. 'good_signatures')
  8. need_string_array(prefix .. 'pubkeys')
  9. end
  10. need_table('autoupdater.branches', check_branch)