Remove duplicate api call of clear cache memory
[platform/core/appfw/app-installers.git] / 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;