Fix metadata plugin parser handlers 98/263798/2
authorHwankyu Jhun <h.jhun@samsung.com>
Fri, 10 Sep 2021 07:24:15 +0000 (16:24 +0900)
committerHwankyu Jhun <h.jhun@samsung.com>
Fri, 10 Sep 2021 07:26:04 +0000 (16:26 +0900)
This patch removes "REMOVE" step. Currently, when the package is
upgrading, the "UPGRADE" function is invoked. And then, the "REMOVE"
function is invoked. In this case, the metadata plugin parser removes
installed data from the appsvc database. This patch prevents to remove
the alias and allowed infos.

Change-Id: I80080adc0d5d1538bfb88ed3001b99e5a034a09c
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
parser/metadata/alias-appid/pkgmgr_interface.cc
parser/metadata/allowed-appid/pkgmgr_interface.cc

index f43f1050922cf63ddadac3b92ebbe84aeaa5706d..edb4faacfd856ca89605d8416adbef1baacd287a 100644 (file)
@@ -104,8 +104,5 @@ extern "C" API int PKGMGR_MDPARSER_PLUGIN_REMOVED(const char* pkgid,
     const char* appid, GList* list)
 {
   _W("[__ALIAS_APPID__] pkgid(%s), appid(%s)", pkgid, appid);
-  PluginManager::GetInst().AddAppEventArgs(pkgid, appid,
-      EventType::Uninstall, list);
-  PluginManager::GetInst().Do();
   return 0;
 }
index 5bf1b79879c21fcfe044f217f871d4d83cf1f935..3c16f902225b80197bf5fceb073d43ebd062e30f 100644 (file)
@@ -104,8 +104,5 @@ extern "C" API int PKGMGR_MDPARSER_PLUGIN_REMOVED(const char* pkgid,
     const char* appid, GList* list)
 {
   _W("[__ALLOWED_APPID__] pkgid(%s), appid(%s)", pkgid, appid);
-  PluginManager::GetInst().AddAppEventArgs(pkgid, appid,
-      EventType::Uninstall, list);
-  PluginManager::GetInst().Do();
   return 0;
 }