void TaskManifestFile::stepParseManifest()
{
int code = 0;
-
char* updateTags[3] = {NULL, };
if (!m_context.mode.removable) {
}
+ commitManifest();
+
if (!m_context.isUpdateMode) {
- commitManifest();
code = pkgmgr_parser_parse_manifest_for_installation(
commit_manifest.c_str(), (updateTags[0] == NULL) ? NULL : updateTags);
ThrowMsg(Exceptions::ManifestInvalid, "Parser returncode: " << code);
}
} else {
- if (m_context.widgetConfig.packagingType !=
- PKG_TYPE_HYBRID_WEB_APP)
- {
- commitManifest();
- code = pkgmgr_parser_parse_manifest_for_upgrade(
- commit_manifest.c_str(), (updateTags[0] == NULL) ? NULL : updateTags);
-
- if (code != 0) {
- LogError("Manifest parser error: " << code);
- ThrowMsg(Exceptions::ManifestInvalid, "Parser returncode: " << code);
- }
+ code = pkgmgr_parser_parse_manifest_for_upgrade(
+ commit_manifest.c_str(), (updateTags[0] == NULL) ? NULL : updateTags);
+ if (code != 0) {
+ LogError("Manifest parser error: " << code);
+ ThrowMsg(Exceptions::ManifestInvalid, "Parser returncode: " << code);
}
}