gluon/package/gluon-autoupdater/check_site.lua

15 lines
441 B
Lua
Raw Normal View History

need_string(in_site('autoupdater.branch'))
2014-07-05 00:48:56 +00:00
local function check_branch(k, _)
assert_uci_name(k)
2014-07-05 00:48:56 +00:00
local prefix = string.format('autoupdater.branches[%q].', k)
need_string(in_site(prefix .. 'name'))
need_string_array_match(prefix .. 'mirrors', '^http://')
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)