gluon/package/gluon-autoupdater/check_site.lua
lemoer d571f6054b check_site: introduce in_site_or_domain() stub
This does not change any behaviour. It's just a preparatory step to
make things more clear in the following commits.
2021-08-15 16:38:59 +02:00

12 lines
527 B
Lua

need_string(in_site({'autoupdater', 'branch'}), false)
need_table(in_site_or_domain({'autoupdater', 'branches'}), function(branch)
need_alphanumeric_key(branch)
need_string(in_site(extend(branch, {'name'})))
need_string_array_match(in_site_or_domain(extend(branch, {'mirrors'})), '^http://')
need_number(in_site(extend(branch, {'good_signatures'})))
need_string_array_match(in_site(extend(branch, {'pubkeys'})), '^%x+$')
obsolete(in_site(extend(branch, {'probability'})), 'Use GLUON_PRIORITY in site.mk instead.')
end)