From e96d18e61133f90802a22bc8dbb93301fb9cbb4b Mon Sep 17 00:00:00 2001 From: "chenglei16@huawei.com" Date: Sat, 2 Aug 2025 19:13:13 +0800 Subject: [PATCH 1/2] add instruction Signed-off-by: chenglei16@huawei.com --- services/updater_binary/update_processor.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/services/updater_binary/update_processor.cpp b/services/updater_binary/update_processor.cpp index 337ba0ae..6c538fbe 100644 --- a/services/updater_binary/update_processor.cpp +++ b/services/updater_binary/update_processor.cpp @@ -533,6 +533,8 @@ int ProcessUpdater(bool retry, int pipeFd, const std::string &packagePath, const int32_t UScriptInstructionIsUpdaterMode::Execute(Uscript::UScriptEnv &env, Uscript::UScriptContext &context) { - return Utils::IsUpdaterMode() ? USCRIPT_ERROR_EXECUTE : USCRIPT_SUCCESS; + int32_t ret = Utils::IsUpdaterMode() ? USCRIPT_ERROR_EXECUTE : USCRIPT_SUCCESS; + context.PushParam(ret) + return ret; } } // Updater -- Gitee From 800cd5600f319cbfdc754e804d8436b3f4e0257f Mon Sep 17 00:00:00 2001 From: "chenglei16@huawei.com" Date: Sat, 2 Aug 2025 19:42:19 +0800 Subject: [PATCH 2/2] add instruction Signed-off-by: chenglei16@huawei.com --- services/updater_binary/update_processor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/services/updater_binary/update_processor.cpp b/services/updater_binary/update_processor.cpp index 6c538fbe..c4e37268 100644 --- a/services/updater_binary/update_processor.cpp +++ b/services/updater_binary/update_processor.cpp @@ -534,7 +534,7 @@ int ProcessUpdater(bool retry, int pipeFd, const std::string &packagePath, const int32_t UScriptInstructionIsUpdaterMode::Execute(Uscript::UScriptEnv &env, Uscript::UScriptContext &context) { int32_t ret = Utils::IsUpdaterMode() ? USCRIPT_ERROR_EXECUTE : USCRIPT_SUCCESS; - context.PushParam(ret) + context.PushParam(ret); return ret; } } // Updater -- Gitee