Because installer can write to db during undo or clear operation
such as UninstallSteps, the client who received the finish signal
may take the wrong package information
Change-Id: I62d674e4b37692fabdee45287c99dce202616b87
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
(cherry picked from commit
6b1545db2a79c4fbfe9bc5a0d29ddce0a2d41d57)
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();
}
void AppInstaller::SendFinished(Step::Status process_status) {
+ pkgmgr_parser_clear_cache_memory_db();
+
if (!SendStartIfNotSent(false))
return;