Fixed send signal pkgmgr to pkgid from appid
authorSoyoung Kim <sy037.kim@samsung.com>
Wed, 20 Mar 2013 05:09:59 +0000 (14:09 +0900)
committerSoyoung Kim <sy037.kim@samsung.com>
Wed, 20 Mar 2013 05:09:59 +0000 (14:09 +0900)
[Issue#] _SE-26571
[Problem] can't remove at installed widget list at setting of manage application.
[Cause] pkgmgr signal id should not appid.
[Solution] send pkgid instead appid during send progress signal to pkgmgr.
[SCMRequest] N/A

src/jobs/widget_install/job_widget_install.cpp
src/jobs/widget_uninstall/job_widget_uninstall.cpp

index cd810fb..2607ab6 100644 (file)
@@ -426,7 +426,7 @@ void JobWidgetInstall::setTizenId(
     getInstallerStruct().pkgmgrInterface->setPkgname(DPL::ToUTF8String(
                                                          m_installerContext.
                                                              widgetConfig.
-                                                             tzAppid));
+                                                             tzPkgid));
     LogInfo("Tizen App Id : " << m_installerContext.widgetConfig.tzAppid);
     LogInfo("Tizen Pkg Id : " << m_installerContext.widgetConfig.tzPkgid);
     LogInfo("W3C Widget GUID : " << m_installerContext.widgetConfig.guid);
index b28b9e9..13c336b 100644 (file)
@@ -109,7 +109,7 @@ JobWidgetUninstall::JobWidgetUninstall(
         AddTask(new TaskDeleteCertificates(m_context));
 
         // send start signal of pkgmgr
-        if (getInstallerStruct().pkgmgrInterface->setPkgname(m_context.tzAppid))
+        if (getInstallerStruct().pkgmgrInterface->setPkgname(m_context.tzPkgid))
         {
             getInstallerStruct().pkgmgrInterface->sendSignal(
                 PKGMGR_START_KEY,