if (pkginfo_found) {
if (user) {
/* Try to get in user packages */
- pkgmgrinfo_appinfo_get_usr_list(handle, PMINFO_ALL_APP, pkg_app_list_cb, (void *)&ret, uid);
+ ret = pkgmgrinfo_appinfo_get_usr_list(handle, PMINFO_ALL_APP, pkg_app_list_cb, (void *)&ret, uid);
+ if (ret != PMINFO_R_OK) {
+ MAS_LOGW("Failed to get usr pkg list from pkginfo, returned %d", ret);
+ }
} else {
/* Try to get in global packages */
- pkgmgrinfo_appinfo_get_list(handle, PMINFO_ALL_APP, pkg_app_list_cb, (void *)&ret);
+ ret pkgmgrinfo_appinfo_get_list(handle, PMINFO_ALL_APP, pkg_app_list_cb, (void *)&ret);
+ if (ret != PMINFO_R_OK) {
+ MAS_LOGW("Failed to get pkg list from pkginfo, returned %d", ret);
+ }
}
} else {
/* Even if we failed acquiring the pkginfo, proceed if we're uninstalling