Clear memory database at the end of installation 08/254908/1
authorIlho Kim <ilho159.kim@samsung.com>
Wed, 10 Mar 2021 10:01:08 +0000 (19:01 +0900)
committerIlho Kim <ilho159.kim@samsung.com>
Wed, 10 Mar 2021 10:01:08 +0000 (19:01 +0900)
Change-Id: Iea5c43c88fd5bccf4f150b5f491b1e8dac6d3004
Signed-off-by: Ilho Kim <ilho159.kim@samsung.com>
src/common/installer_runner.cc

index d54a873..a5f8646 100644 (file)
@@ -5,6 +5,7 @@
 #include "common/installer_runner.h"
 
 #include <manifest_parser/utils/logging.h>
+#include <pkgmgr_parser_db.h>
 
 #include <list>
 #include <string>
@@ -89,7 +90,9 @@ AppInstaller::Result InstallerRunner::Run() {
       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)
       global_recovery_->AppendCleanUp();
     --it;