From 59d182fe54fc463d4e8de3b006f0b7b08bda97bf Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Thu, 12 Mar 2020 00:27:05 +0100 Subject: [PATCH] gluon-core: gluon.platform: allow omitting target and subtarget Allow wildcard matches on all subtargets of a target, or a full wildcard always returning true when no arguments are passed. --- package/gluon-core/luasrc/usr/lib/lua/gluon/platform.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/package/gluon-core/luasrc/usr/lib/lua/gluon/platform.lua b/package/gluon-core/luasrc/usr/lib/lua/gluon/platform.lua index a63e97cc..41e06003 100644 --- a/package/gluon-core/luasrc/usr/lib/lua/gluon/platform.lua +++ b/package/gluon-core/luasrc/usr/lib/lua/gluon/platform.lua @@ -7,11 +7,11 @@ local M = setmetatable({}, { }) function M.match(target, subtarget, boards) - if M.get_target() ~= target then + if target and M.get_target() ~= target then return false end - if M.get_subtarget() ~= subtarget then + if subtarget and M.get_subtarget() ~= subtarget then return false end