Fixed can't install hybrid web app.
authorSoyoung Kim <sy037.kim@samsung.com>
Fri, 21 Jun 2013 05:51:52 +0000 (14:51 +0900)
committerSoyoung Kim <sy037.kim@samsung.com>
Fri, 21 Jun 2013 06:03:32 +0000 (15:03 +0900)
[Issue#] N/A
[Problem] there is no service app data in aul db.
[Cause] because of upgrade manifest file before insert service app data in manifest file.
[Solution] remove to upgrade manifest before installation service app if web app is hybrid.
[SCMRequest] N/A

Change-Id: Ia2e706ae86c7c645fb8207a7af311f20cabeef09

src/jobs/widget_install/task_manifest_file.cpp

index 5ee73c6..99b34a1 100755 (executable)
@@ -603,12 +603,14 @@ void TaskManifestFile::stepParseManifest()
                 && m_context.mode.installTime == InstallMode::InstallTime::PRELOAD
                 && m_context.mode.extension == InstallMode::ExtensionType::DIR)) {
 
-        code = pkgmgr_parser_parse_manifest_for_upgrade(
-                commit_manifest.c_str(), (updateTags[0] == NULL) ? NULL : updateTags);
+        if (m_context.widgetConfig.packagingType != PKG_TYPE_HYBRID_WEB_APP) {
+            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);
+            if (code != 0) {
+                LogError("Manifest parser error: " << code);
+                ThrowMsg(Exceptions::ManifestInvalid, "Parser returncode: " << code);
+            }
         }
     } else {
         code = pkgmgr_parser_parse_manifest_for_installation(