- Test 'tct-package-tizen-tests: PackageInformationArraySuccessCallback_onsuccess'
fails on empty name, to fix that if package name is empty package name will be filled with package-id
- For example package with empty name: 'org.tizen.secure-erase'
Change-Id: I2e5f53ba36369c461591226796751f98a399e3f0
Signed-off-by: Daniil Ruban <intx82@gmail.com>
LoggerE("[%s] Failed to get package name: %d (%s)", id, ret, get_error_message(ret));
return false;
}
- out["name"] = picojson::value(name);
+
+ if (name[0] == '\0' ) {
+ out["name"] = picojson::value(id);
+ } else {
+ out["name"] = picojson::value(name);
+ }
char* iconPath = NULL;
ret = pkgmgrinfo_pkginfo_get_icon(info, &iconPath);