gluon-hoodselector: check_site.lua: replace hood with domain

Signed-off-by: Jan-Tarek Butt <tarek@ring0.de>
This commit is contained in:
Jan-Tarek Butt 2019-02-25 11:49:02 +01:00
parent 1a8e41150b
commit 7f24875a26

View File

@ -4,11 +4,11 @@ function need_nil(path)
return true return true
end end
return false return false
end, true, "default hood should not contain shapes") end, true, "The default domain should not contain shapes")
return nil return nil
end end
--Need to check if not default hood and does the default not contain shapes --Need to check if not default domain and does the default not contain shapes
if this_domain() ~= need_string(in_site({'default_domain'})) then if this_domain() ~= need_string(in_site({'default_domain'})) then
local no_shapes = true local no_shapes = true
for _,shape in ipairs(need_table(in_domain({'hoodselector', 'shapes'}))) do for _,shape in ipairs(need_table(in_domain({'hoodselector', 'shapes'}))) do
@ -28,8 +28,8 @@ if this_domain() ~= need_string(in_site({'default_domain'})) then
end end
end end
if no_shapes then if no_shapes then
need(in_domain({'hoodselector', 'shapes'}), function(err) return false end, true, "no shapes are defined in hoods") need(in_domain({'hoodselector', 'shapes'}), function(err) return false end, true, "no shapes are defined in domainss")
end end
else -- ente by default hood else -- ente by default domain
need_nil(in_domain({'hoodselector', 'shapes'})) need_nil(in_domain({'hoodselector', 'shapes'}))
end end