Skip to content
Snippets Groups Projects
Unverified Commit 60d72882 authored by David Bauer's avatar David Bauer Committed by GitHub
Browse files

Merge pull request #2047 from freifunk-gluon/fix-config-check

build: target_config_check: make check more lenient
parents 5d51b7dc 8b64517f
No related branches found
No related tags found
No related merge requests found
...@@ -9,18 +9,26 @@ local function fail(msg) ...@@ -9,18 +9,26 @@ local function fail(msg)
io.stderr:write(' * ', msg, '\n') io.stderr:write(' * ', msg, '\n')
end end
local function match_config(f) local function match_config(expected, actual)
for line in io.lines('openwrt/.config') do if expected == actual then
if f(line) then return true
return true end
end
if expected:gsub('=m$', '=y') == actual then
return true
end end
return false return false
end end
local function check_config(config) local function check_config(config)
return match_config(function(line) return line == config end) for line in io.lines('openwrt/.config') do
if match_config(config, line) then
return true
end
end
return false
end end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment