Fix pkginfo tool 44/224744/2
authorHwankyu Jhun <h.jhun@samsung.com>
Wed, 12 Feb 2020 23:04:01 +0000 (08:04 +0900)
committerHwankyu Jhun <h.jhun@samsung.com>
Wed, 12 Feb 2020 23:21:47 +0000 (08:21 +0900)
This patch adds a new condition to check whether the component type is
component-based-application or not.

Change-Id: I621996fd95f40c5e45d5f1dff8c32df2330d155a
Signed-off-by: Hwankyu Jhun <h.jhun@samsung.com>
src/pkg_info.c

index 6a50d57..42acf57 100644 (file)
@@ -1887,10 +1887,12 @@ static int __get_app_info(char *appid)
                printf("Apptype: %s\n", apptype);
 
        if (component == PMINFO_UI_APP || component == PMINFO_WIDGET_APP ||
-               component == PMINFO_WATCH_APP) {
+               component == PMINFO_WATCH_APP ||
+               component == PMINFO_COMPONENT_BASED_APP) {
                printf("component: %s\n", component == PMINFO_UI_APP ?
                        "uiapp" : component == PMINFO_WIDGET_APP ?
-                       "widgetapp" : "watchapp");
+                       "widgetapp" : component == PMINFO_WATCH_APP ?
+                       "watchapp" : "componentbasedapp");
                if (icon)
                        printf("Icon: %s\n", icon);
                if (label)