pkgmgrinfo_appinfo_h appinfo_handle = NULL;
ret = pkgmgrinfo_appinfo_get_appinfo(appid, &appinfo_handle);
- if (ret != PMINFO_R_OK)
+ if (ret != PMINFO_R_OK) {
+ LOGW("pkgmgrinfo_appinfo_get_appinfo() failed\n");
return -1;
+ }
ret = pkgmgrinfo_appinfo_get_exec(appinfo_handle, &exec_path);
if (ret != PMINFO_R_OK) {
+ LOGW("pkgmgrinfo_appinfo_get_exec() failed\n");
pkgmgrinfo_appinfo_destroy_appinfo(appinfo_handle);
return -1;
}
/* Try to get in global packages */
ret = pkgmgrinfo_pkginfo_get_pkginfo(pkgid, &pkginfo_handle);
if (ret != PMINFO_R_OK) {
+ LOGW("pkgmgrinfo_pkginfo_get_pkginfo() failed\n");
pkgmgrinfo_appinfo_destroy_appinfo(appinfo_handle);
return -1;
}
else
LOGD("Succeeded to create symbolic link : %s\n", exec_path);
}
+ else {
+ LOGW("Can't create symbolic link. %s is existed\n", exec_path);
+ }
}
pkgmgrinfo_pkginfo_destroy_pkginfo(pkginfo_handle);