X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=src%2Fcommon%2Finstaller%2Fapp_installer.cc;h=bdef968accd4b78e384b861b6e6fb99b75f8d70b;hb=6b1545db2a79c4fbfe9bc5a0d29ddce0a2d41d57;hp=47f9a298af56756675ed5fa8280362c3e84b888f;hpb=43adc454ca1b907029ee2ab366f3630e95ebe627;p=platform%2Fcore%2Fappfw%2Fapp-installers.git diff --git a/src/common/installer/app_installer.cc b/src/common/installer/app_installer.cc index 47f9a29..bdef968 100644 --- a/src/common/installer/app_installer.cc +++ b/src/common/installer/app_installer.cc @@ -207,10 +207,8 @@ AppInstaller::Result AppInstaller::Run() { Process(); if (it_ != steps_.end() && result_ == Result::ERROR) { LOG(ERROR) << "Failure occurs in step: " << (*it_)->name(); - pkgmgr_parser_clear_cache_memory_db(); Undo(); } else { - pkgmgr_parser_clear_cache_memory_db(); Clean(); } sync(); @@ -872,6 +870,8 @@ void AppInstaller::SendProgress(int progress) { } void AppInstaller::SendFinished(Step::Status process_status) { + pkgmgr_parser_clear_cache_memory_db(); + if (!SendStartIfNotSent(false)) return;