Change-Id: I9f73721835195241053cd32a1c39696b77b5e2ac
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
#include <fstream>
#include <TTraceWrapper.h>
+#include <pkgmgr_parser_db.h>
+
#include "common/installer/app_installer.h"
#include "common/installer_context.h"
#include "common/pkgmgr_interface.h"
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();
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());
- pkgmgr_parser_clear_cache_memory_db();
} else {
pkgmgr_parser_clear_cache_memory_db();
if (pkgmgr_->GetRequestType() != RequestType::Recovery)