From: Soyoung Kim Date: Tue, 30 Apr 2013 05:53:33 +0000 (+0900) Subject: Fixed privilege list at install service X-Git-Tag: submit/tizen_2.2/20130716.180435~1^2~175 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d388e350c73ebefbf30bbe4d5be9becb106ca45e;p=framework%2Fweb%2Fwrt-installer.git Fixed privilege list at install service [Issue#] N/A [Problem] privilege list don't show at install service during installation. [Cause] can't add glist. [Solution] add privliege at glist. [SCMRequest] N/A Change-Id: Ide0b7ea404bff1c0712dc178b83196cf9e798622 --- diff --git a/src/pkg-manager/backendlib.cpp b/src/pkg-manager/backendlib.cpp index 497bf3f..bdda87d 100644 --- a/src/pkg-manager/backendlib.cpp +++ b/src/pkg-manager/backendlib.cpp @@ -419,15 +419,16 @@ int getWidgetDetailInfoFromPackage(const char* pkgPath, PKG_VALUE_STRING_LEN_MAX - 1); } - GList *privilege_list = pkg_detail_info->privilege_list; + pkg_detail_info->privilege_list = NULL; FOREACH(it, configInfo.featuresList) { std::string featureInfo = DPL::ToUTF8String(it->name); LogDebug("privilege : " << featureInfo); int length = featureInfo.size(); char *privilege = (char*) calloc(1, (sizeof(char) * (length + 1))); snprintf(privilege, length + 1, "%s", featureInfo.c_str()); - privilege_list = g_list_append(privilege_list, &privilege); + pkg_detail_info->privilege_list = + g_list_append(pkg_detail_info->privilege_list, privilege); } std::string icon_name;