std::string pkgid = DPL::ToUTF8String(m_context.widgetConfig.tzPkgid);
pkgmgrinfo_pkginfo_h handle;
- int ret = pkgmgrinfo_pkginfo_get_pkginfo(pkgid.c_str(), &handle);
- if (ret != PMINFO_R_OK) {
- LogDebug("StepUpdateManifestFile");
- std::ostringstream manifest_file;
- if (m_context.mode.rootPath == InstallMode::RootPath::RO) {
- manifest_file << "/usr/share/packages/"; //TODO constant with path
- } else {
- manifest_file << "/opt/share/packages/"; //TODO constant with path
- }
- manifest_file << pkgid;
- manifest_file << ".xml";
- LogDebug("manifest file : " << manifest_file.str());
-
- int code = pkgmgr_parser_parse_manifest_for_upgrade(
- manifest_file.str().c_str(), NULL);
-
- if (code != 0) {
- LogError("Manifest parser error: " << code);
- }
+ LogDebug("StepUpdateManifestFile");
+ std::ostringstream manifest_file;
+ if (m_context.mode.rootPath == InstallMode::RootPath::RO) {
+ manifest_file << "/usr/share/packages/"; //TODO constant with path
+ } else {
+ manifest_file << "/opt/share/packages/"; //TODO constant with path
+ }
+ manifest_file << pkgid;
+ manifest_file << ".xml";
+ LogDebug("manifest file : " << manifest_file.str());
+
+ int code = pkgmgr_parser_parse_manifest_for_upgrade(
+ manifest_file.str().c_str(), NULL);
+
+ if (code != 0) {
+ LogError("Manifest parser error: " << code);
}
}
} //namespace WidgetInstall