diff --git a/README.md b/README.md index cdf37172fc7b0933d77e463e89bb7fe941c612f2..865d2115fa9dbf8df8129c1592b2bcbd78c1a907 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 42a5a0fd08797af9c54fc48ca00367743f59eb00..45633bea6e2b2bb4d75a4fff50a047076a3fb4c0 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 569998fa98525b8624dca14e7b72c3a3ccd1e8f6..8561fcfcbb43d56004b798afe075b4a72497c5c3 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";