Remove duplicate api call of clear cache memory 30/283130/3
authorIlho Kim <ilho159.kim@samsung.com>
Tue, 18 Oct 2022 11:20:59 +0000 (20:20 +0900)
committerilho kim <ilho159.kim@samsung.com>
Thu, 20 Oct 2022 05:39:12 +0000 (05:39 +0000)
After ther installeation is complete
The SendFinish function call the api

Change-Id: I3c912aec2d70c446b934eecf562dff7a86b8860b
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
src/common/installer_runner.cc

index ea4c03a..dbc6d3c 100644 (file)
@@ -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;