From b01b9eb8027d793b3d8385bf633cd7c203f56fed Mon Sep 17 00:00:00 2001 From: wangjiadong Date: Tue, 7 May 2024 16:49:25 +0800 Subject: [PATCH 1/3] Signed-off-by: wangjiadong deleat version check --- services/updater_preprocess.cpp | 3 --- 1 file changed, 3 deletions(-) diff --git a/services/updater_preprocess.cpp b/services/updater_preprocess.cpp index a7ee06ec..bd3148b9 100644 --- a/services/updater_preprocess.cpp +++ b/services/updater_preprocess.cpp @@ -124,10 +124,7 @@ int32_t UpdatePreProcess(UpdaterParams &upParams, PkgManager::PkgManagerPtr pkgM ret = CheckBoardId(pkgManager, pkginfomanager); if (ret != 0) { PackagesInfo::ReleasePackagesInfoInstance(pkginfomanager); - return ret; } - ret = CheckVersion(pkgManager, pkginfomanager); - PackagesInfo::ReleasePackagesInfoInstance(pkginfomanager); return ret; } -- Gitee From 1a19905a763bf765dc6c7d470fef1d8128846939 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E4=BD=B3=E6=A0=8B?= Date: Tue, 7 May 2024 09:02:49 +0000 Subject: [PATCH 2/3] update services/updater_preprocess.cpp. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 王佳栋 --- services/updater_preprocess.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/services/updater_preprocess.cpp b/services/updater_preprocess.cpp index bd3148b9..985f6e86 100644 --- a/services/updater_preprocess.cpp +++ b/services/updater_preprocess.cpp @@ -122,9 +122,7 @@ int32_t UpdatePreProcess(UpdaterParams &upParams, PkgManager::PkgManagerPtr pkgM return PKG_INVALID_VERSION; } ret = CheckBoardId(pkgManager, pkginfomanager); - if (ret != 0) { - PackagesInfo::ReleasePackagesInfoInstance(pkginfomanager); - } + PackagesInfo::ReleasePackagesInfoInstance(pkginfomanager); return ret; } -- Gitee From bee6809859df21b8586d66ca7c3adab6b4ab9efc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E4=BD=B3=E6=A0=8B?= Date: Wed, 8 May 2024 08:02:54 +0000 Subject: [PATCH 3/3] update services/flow_update/update_bin/component_processor.cpp. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 王佳栋 --- services/flow_update/update_bin/component_processor.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/services/flow_update/update_bin/component_processor.cpp b/services/flow_update/update_bin/component_processor.cpp index a9eca5d2..99fb4d43 100644 --- a/services/flow_update/update_bin/component_processor.cpp +++ b/services/flow_update/update_bin/component_processor.cpp @@ -93,11 +93,7 @@ int32_t VersionCheckProcessor::DoProcess(Uscript::UScriptEnv &env) break; } } -#ifndef UPDATER_UT - return ret; -#else return USCRIPT_SUCCESS; -#endif } int32_t BoardIdCheckProcessor::DoProcess(Uscript::UScriptEnv &env) -- Gitee