check_site.lua 388 B

12345678910
  1. need_string(in_site({'autoupdater', 'branch'}))
  2. need_table({'autoupdater', 'branches'}, function(branch)
  3. need_alphanumeric_key(branch)
  4. need_string(in_site(extend(branch, {'name'})))
  5. need_string_array_match(extend(branch, {'mirrors'}), '^http://')
  6. need_number(in_site(extend(branch, {'good_signatures'})))
  7. need_string_array_match(in_site(extend(branch, {'pubkeys'})), '^%x+$')
  8. end)