gluon-autoupdater: mirror URLs must start with http://

The older busybox-based wget erroneously accepted URLs without protocol.
Add validator to avoid building firmwares with broken autoupdates.
This commit is contained in:
Matthias Schiffer 2017-09-05 19:04:27 +02:00
parent 5de9f0469e
commit 9ab93992d1
No known key found for this signature in database
GPG Key ID: 16EF3F64CB201D9C

View File

@ -6,7 +6,7 @@ local function check_branch(k, _)
local prefix = string.format('autoupdater.branches[%q].', k) local prefix = string.format('autoupdater.branches[%q].', k)
need_string(prefix .. 'name') need_string(prefix .. 'name')
need_string_array(prefix .. 'mirrors') need_string_array_match(prefix .. 'mirrors', '^http://')
need_number(prefix .. 'good_signatures') need_number(prefix .. 'good_signatures')
need_string_array_match(prefix .. 'pubkeys', '^%x+$') need_string_array_match(prefix .. 'pubkeys', '^%x+$')
end end