From 1e63d93442eaae18fad3f4928a3105703f9c078e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E4=BD=B3=E6=A0=8B?= Date: Wed, 15 Jan 2025 07:15:05 +0000 Subject: [PATCH 1/3] update interfaces/kits/updaterkits/updaterkits.cpp. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 王佳栋 --- interfaces/kits/updaterkits/updaterkits.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/interfaces/kits/updaterkits/updaterkits.cpp b/interfaces/kits/updaterkits/updaterkits.cpp index decb893a..be7eb602 100755 --- a/interfaces/kits/updaterkits/updaterkits.cpp +++ b/interfaces/kits/updaterkits/updaterkits.cpp @@ -92,7 +92,7 @@ static void WriteUpdaterResultFile(const std::string &pkgPath, const std::string LOG(ERROR) << "open updater result file failed"; return; } - std::string resultInfo = pkgPath + "|fail|" + result + "||\n"; + std::string resultInfo = pkgPath + "|" + result + "|||\n"; if (fwrite(resultInfo.c_str(), resultInfo.size() + 1, 1, fp) <= 0) { LOG(WARNING) << "write updater result file failed, err:" << errno; } -- Gitee From 20872fb2fcaa3828b014256f1a1bbe4a1a0a8985 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E4=BD=B3=E6=A0=8B?= Date: Wed, 15 Jan 2025 07:47:36 +0000 Subject: [PATCH 2/3] update interfaces/kits/updaterkits/updaterkits.cpp. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 王佳栋 --- interfaces/kits/updaterkits/updaterkits.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/interfaces/kits/updaterkits/updaterkits.cpp b/interfaces/kits/updaterkits/updaterkits.cpp index be7eb602..2a3a3b21 100755 --- a/interfaces/kits/updaterkits/updaterkits.cpp +++ b/interfaces/kits/updaterkits/updaterkits.cpp @@ -92,7 +92,7 @@ static void WriteUpdaterResultFile(const std::string &pkgPath, const std::string LOG(ERROR) << "open updater result file failed"; return; } - std::string resultInfo = pkgPath + "|" + result + "|||\n"; + std::string resultInfo = pkgPath + "|NotStart|" + result + "||\n"; if (fwrite(resultInfo.c_str(), resultInfo.size() + 1, 1, fp) <= 0) { LOG(WARNING) << "write updater result file failed, err:" << errno; } -- Gitee From 714d3ec01971c156f9b87a5d43d1af6512ac5483 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E4=BD=B3=E6=A0=8B?= Date: Wed, 15 Jan 2025 09:23:40 +0000 Subject: [PATCH 3/3] update interfaces/kits/updaterkits/updaterkits.cpp. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 王佳栋 --- interfaces/kits/updaterkits/updaterkits.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/interfaces/kits/updaterkits/updaterkits.cpp b/interfaces/kits/updaterkits/updaterkits.cpp index 2a3a3b21..a17e635d 100755 --- a/interfaces/kits/updaterkits/updaterkits.cpp +++ b/interfaces/kits/updaterkits/updaterkits.cpp @@ -92,7 +92,7 @@ static void WriteUpdaterResultFile(const std::string &pkgPath, const std::string LOG(ERROR) << "open updater result file failed"; return; } - std::string resultInfo = pkgPath + "|NotStart|" + result + "||\n"; + std::string resultInfo = pkgPath + "|notstart|" + result + "||\n"; if (fwrite(resultInfo.c_str(), resultInfo.size() + 1, 1, fp) <= 0) { LOG(WARNING) << "write updater result file failed, err:" << errno; } -- Gitee