From a9abb7385b269562f9fd0e13853bc29aa8f0e26b Mon Sep 17 00:00:00 2001 From: unknown Date: Fri, 6 May 2022 11:06:54 +0800 Subject: [PATCH] Signed-off-by: hughes802 --- README.md | 2 +- bundle.json | 1 - utils/utils.cpp | 4 ++-- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index cdf37172..865d2115 100755 --- a/README.md +++ b/README.md @@ -39,7 +39,7 @@ base/update/updater/ The updater runs in the updater partition. To ensure proper functioning of the updater, perform the following operations: -1. Create a updater partition. +1. Create a updater partition. The updater partition is independent of other partitions. It is recommended that the size of the updater partition be greater than or equal to 20 MB. The updater partition image is an ext4 file system. Ensure that the **config** option of the ext4 file system in the system kernel is enabled. diff --git a/bundle.json b/bundle.json index 42a5a0fd..45633bea 100644 --- a/bundle.json +++ b/bundle.json @@ -66,7 +66,6 @@ "build": { "sub_component": [ "//base/update/updater/resources:updater_resources", - "//base/update/updater/services:updater_etc", "//base/update/updater/services/package:libupdaterpackage", "//base/update/updater/services/script:libupdaterscript", "//base/update/updater/services/log:libupdaterlog", diff --git a/utils/utils.cpp b/utils/utils.cpp index 569998fa..8561fcfc 100644 --- a/utils/utils.cpp +++ b/utils/utils.cpp @@ -300,8 +300,8 @@ void WriteOtaResult(const int status) const std::string resultPath = UPDATER_PATH + "/" + UPDATER_RESULT_FILE; FILE *fp = fopen(resultPath.c_str(), "w+"); - if (fp != nullptr) { - LOG(ERROR) << "open result file fialed"; + if (fp == nullptr) { + LOG(ERROR) << "open result file failed"; return; } char buf[MAX_RESULT_SIZE] = "pass\n"; -- Gitee