Don't stop when getting label failed during listing pkgs 82/43982/3 accepted/tizen/mobile/20150720.122059 accepted/tizen/tv/20150720.122205 accepted/tizen/wearable/20150720.122252 submit/tizen/20150720.072256
authorSangyoon Jang <s89.jang@samsung.com>
Thu, 16 Jul 2015 02:06:59 +0000 (11:06 +0900)
committerSangyoon Jang <s89.jang@samsung.com>
Mon, 20 Jul 2015 02:23:12 +0000 (19:23 -0700)
print "(null)" string instead of error return when failed to getting pkg
label during listing pkgs
pkg label is not mandatory

Change-Id: I463b6829e771f0a01dc7d58e4cf1ea147cf63caa
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
tool/pkg_cmd.c

index 1d99640..1c61634 100644 (file)
@@ -469,10 +469,8 @@ static int __pkgmgr_list_cb (const pkgmgr_pkginfo_h handle, void *user_data)
                return ret;
        }
        ret = pkgmgr_pkginfo_get_label(handle, &pkg_label);
-       if (ret == -1) {
-               printf("Failed to get pkgmgr_pkginfo_get_label\n");
-               return ret;
-       }
+       if (ret == -1)
+               pkg_label = "(null)";
 
        ret = pkgmgr_pkginfo_is_for_all_users(handle, &for_all_users);
        if (ret == -1) {