From ea04cdf6c4f77880f36c6c65216098e84031d6d4 Mon Sep 17 00:00:00 2001 From: Hwankyu Jhun Date: Thu, 6 Jul 2023 15:57:18 +0900 Subject: [PATCH] Fix bugs about boot sequence parser plugin The condition of if statements are wrong. If the value is not 'true' or 'false', the parser plugin should set the default value. Change-Id: I41b44aa90779d4bc74711d955ce9fcdea03264a1 Signed-off-by: Hwankyu Jhun --- parser/boot-sequencer/parser_plugin.cc | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/parser/boot-sequencer/parser_plugin.cc b/parser/boot-sequencer/parser_plugin.cc index d6149fa..641e34a 100644 --- a/parser/boot-sequencer/parser_plugin.cc +++ b/parser/boot-sequencer/parser_plugin.cc @@ -350,13 +350,11 @@ void ParserPlugin::ParseBootSequence(xmlNode* node, AppInfo* app_info) { } } - if (app_info->GetBackgroundLaunch().empty() || - app_info->GetBackgroundLaunch() != "true" || + if (app_info->GetBackgroundLaunch() != "true" && app_info->GetBackgroundLaunch() != "false") app_info->SetBackgroundLaunch("true"); - if (app_info->GetWaitUntilReady().empty() || - app_info->GetWaitUntilReady() != "true" || + if (app_info->GetWaitUntilReady() != "true" && app_info->GetWaitUntilReady() != "false") app_info->SetWaitUntilReady("true"); -- 2.7.4