Apply pkgid/appid policy to code regarding livebox
authorYunchan Cho <yunchan.cho@samsung.com>
Tue, 29 Jan 2013 09:17:59 +0000 (18:17 +0900)
committerYunchan Cho <yunchan.cho@samsung.com>
Tue, 29 Jan 2013 09:24:11 +0000 (18:24 +0900)
[Issue#] N/A
[Problem] web livebox creation has a problem
[Cause] wrt-installer is not applied to livebox code properly for changed pkgid/appid policy
[Solution] changed policy of pkgid/appid is applied to livebox code
[SCMRequest] N/A

Change-Id: I1f1624ad3d30eecca8c9e2217fbe8c78ab8dcc08

src/jobs/widget_install/task_manifest_file.cpp

index af40308..e9c72d8 100755 (executable)
@@ -837,22 +837,22 @@ void TaskManifestFile::setLiveBoxInfo(Manifest& manifest)
         LogInfo("setLiveBoxInfo");
         LiveBoxInfo liveBox;
         DPL::Optional<WrtDB::ConfigParserData::LiveboxInfo> ConfigInfo = *it;
-        DPL::String pkgid = m_context.widgetConfig.tzPkgid;
+        DPL::String appid = m_context.widgetConfig.tzAppid;
         size_t found;
 
         if(ConfigInfo->m_liveboxId != L"") {
-            found = ConfigInfo->m_liveboxId.find_first_of(L".");
+            found = ConfigInfo->m_liveboxId.find_last_of(L".");
             if(found != std::string::npos) {
-                if(0 == ConfigInfo->m_liveboxId.compare(0, found, pkgid))
+                if(0 == ConfigInfo->m_liveboxId.compare(0, found, appid))
                     liveBox.setLiveboxId(ConfigInfo->m_liveboxId);
                 else {
                     DPL::String liveboxId =
-                        pkgid+DPL::String(L".")+ConfigInfo->m_liveboxId;
+                        appid + DPL::String(L".") + ConfigInfo->m_liveboxId;
                     liveBox.setLiveboxId(liveboxId);
                 }
             } else {
                 DPL::String liveboxId =
-                    pkgid+DPL::String(L".")+ConfigInfo->m_liveboxId;
+                    appid + DPL::String(L".") + ConfigInfo->m_liveboxId;
                 liveBox.setLiveboxId(liveboxId);
             }
         }