2017-10-28 15:05:53 +00:00
|
|
|
need_string(in_site('autoupdater.branch'))
|
2014-07-05 00:48:56 +00:00
|
|
|
|
|
|
|
local function check_branch(k, _)
|
2015-10-11 17:31:44 +00:00
|
|
|
assert_uci_name(k)
|
|
|
|
|
2014-07-05 00:48:56 +00:00
|
|
|
local prefix = string.format('autoupdater.branches[%q].', k)
|
|
|
|
|
2017-10-28 15:05:53 +00:00
|
|
|
need_string(in_site(prefix .. 'name'))
|
2017-09-05 17:04:27 +00:00
|
|
|
need_string_array_match(prefix .. 'mirrors', '^http://')
|
2017-10-28 15:05:53 +00:00
|
|
|
need_number(in_site(prefix .. 'good_signatures'))
|
|
|
|
need_string_array_match(in_site(prefix .. 'pubkeys'), '^%x+$')
|
2014-07-05 00:48:56 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
need_table('autoupdater.branches', check_branch)
|