X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=NativeLauncher%2Finstaller-plugin%2Fdotnet_apptype_plugin.cc;h=973a8069f410dd6fe36348e2845586b644c47a3d;hb=83b3a27a7b9f93fd8852b4dc64e9a3a713ca53d8;hp=0cff38640227571164c1a31dc4d5b244baf08c30;hpb=2d4326123e4b93ec85810bc0389ebad3cb29d2d4;p=platform%2Fcore%2Fdotnet%2Flauncher.git diff --git a/NativeLauncher/installer-plugin/dotnet_apptype_plugin.cc b/NativeLauncher/installer-plugin/dotnet_apptype_plugin.cc index 0cff386..973a806 100644 --- a/NativeLauncher/installer-plugin/dotnet_apptype_plugin.cc +++ b/NativeLauncher/installer-plugin/dotnet_apptype_plugin.cc @@ -30,16 +30,20 @@ typedef struct _xmlDoc xmlDoc; typedef xmlDoc* xmlDocPtr; -static bool pluginInstalled = false; +static std::string prevInstallPkgId = std::string(""); extern "C" int PKGMGR_PARSER_PLUGIN_INSTALL(xmlDocPtr doc, const char* pkgId) { + if (pkgId == NULL) { + return 0; + } + // Can be multiple apps in one package - if (pluginInstalled) { - _INFO("Plugin already installed"); + if (strcmp(pkgId, prevInstallPkgId.c_str()) == 0) { + _INFO("AppType Plugin already run for same pkgId (%s)", pkgId); return 0; } - pluginInstalled = true; + prevInstallPkgId = pkgId; std::string appType = getAppType(pkgId); if (appType.empty()) {