Fixed get detail information from wgt file
authorSoyoung Kim <sy037.kim@samsung.com>
Mon, 25 Mar 2013 12:26:24 +0000 (21:26 +0900)
committerSoyoung Kim <sy037.kim@samsung.com>
Thu, 28 Mar 2013 07:29:49 +0000 (16:29 +0900)
[Issue#] N/A
[Problem] wrong value.
[Cause] N/A
[Solution] store right value at pkgmgr struct request by osp team.
[SCMRequest] N/A

Change-Id: I8b861368f6cc64442cd2f1d0d40d7368e0762392

src/pkg-manager/backendlib.cpp

index 60eb9b0..c7a58c3 100644 (file)
@@ -349,6 +349,11 @@ int getWidgetDetailInfoFromPackage(const char* pkgPath,
         strncpy(pkg_detail_info->pkgid,
                 DPL::ToUTF8String(*configInfo.tizenPkgId).c_str(), PKG_TYPE_STRING_LEN_MAX - 1);
     }
+    if (!configInfo.tizenAppId.IsNull()) {
+        strncpy(pkg_detail_info->pkg_name,
+                DPL::ToUTF8String(*configInfo.tizenAppId).c_str(),
+                PKG_NAME_STRING_LEN_MAX);
+    }
     if (!configInfo.version.IsNull()) {
         strncpy(pkg_detail_info->version,
                 DPL::ToUTF8String(*configInfo.version).c_str(),
@@ -376,7 +381,8 @@ int getWidgetDetailInfoFromPackage(const char* pkgPath,
     }
 
     if( !name.IsNull()) {
-        strncpy(pkg_detail_info->pkg_name, DPL::ToUTF8String(*name).c_str(), PKG_NAME_STRING_LEN_MAX - 1);
+        strncpy(pkg_detail_info->label, DPL::ToUTF8String(*name).c_str(),
+                PKG_LABEL_STRING_LEN_MAX - 1);
     }
 
     if (!desc.IsNull()) {