From 9505ac55d2accef82c7c8cdcf0e0685461bd431b Mon Sep 17 00:00:00 2001 From: Ilho Kim Date: Tue, 18 Oct 2022 20:20:59 +0900 Subject: [PATCH] Remove duplicate api call of clear cache memory After ther installeation is complete The SendFinish function call the api Change-Id: I3c912aec2d70c446b934eecf562dff7a86b8860b Signed-off-by: Ilho Kim --- src/common/installer_runner.cc | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/common/installer_runner.cc b/src/common/installer_runner.cc index ea4c03a..dbc6d3c 100644 --- a/src/common/installer_runner.cc +++ b/src/common/installer_runner.cc @@ -85,14 +85,12 @@ AppInstaller::Result InstallerRunner::Run() { break; } if (it != installers_.end() && result == AppInstaller::Result::ERROR) { - pkgmgr_parser_clear_cache_memory_db(); do { AppInstaller::Result ret = (*it)->Undo(); if (ret != AppInstaller::Result::OK && ret != AppInstaller::Result::ERROR) result = AppInstaller::Result::UNDO_ERROR; } while (it-- != installers_.begin()); } else { - pkgmgr_parser_clear_cache_memory_db(); if (pkgmgr_->GetRequestType() != RequestType::Recovery) global_recovery_->AppendCleanUp(); --it; -- 2.7.4