Fix getting appinfo 14/60414/2 accepted/tizen/common/20160304.194344 accepted/tizen/ivi/20160303.093926 accepted/tizen/mobile/20160303.093814 accepted/tizen/tv/20160303.093836 accepted/tizen/wearable/20160303.093907 submit/tizen/20160303.064856
authorSangyoon Jang <s89.jang@samsung.com>
Fri, 26 Feb 2016 04:33:15 +0000 (13:33 +0900)
committerSangyoon Jang <s89.jang@samsung.com>
Fri, 26 Feb 2016 04:34:14 +0000 (20:34 -0800)
Consider widget application also.

Change-Id: I789262f7e1c711f5d8db5e7b700337f9e30db01f
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
src/pkg_info.c

index 6eb8605919c6cb520ef2d683d76ab2962738ff8e..e5c89d04ae28fde0fde79e92d870ea3267c4974a 100644 (file)
@@ -1489,8 +1489,9 @@ int app_func(const pkgmgrinfo_appinfo_h handle, void *user_data)
        if (apptype)
                printf("Apptype: %s\n", apptype);
 
-       if (component == PMINFO_UI_APP) {
-               printf("component: uiapp\n");
+       if (component == PMINFO_UI_APP || component == PMINFO_WIDGET_APP) {
+               printf("component: %s\n", component == PMINFO_UI_APP ? "uiapp" :
+                               "widgetapp");
                ret = pkgmgrinfo_appinfo_is_multiple(handle, &multiple);
                if (ret < 0) {
                        printf("Failed to get multiple\n");
@@ -1908,8 +1909,9 @@ static int __get_app_info(char *appid)
        if (apptype)
                printf("Apptype: %s\n", apptype);
 
-       if (component == PMINFO_UI_APP) {
-               printf("component: uiapp\n");
+       if (component == PMINFO_UI_APP || component == PMINFO_WIDGET_APP) {
+               printf("component: %s\n", component == PMINFO_UI_APP ? "uiapp" :
+                               "widgetapp");
 
                if (icon)
                        printf("Icon: %s\n", icon);