bugfix of package installation 17/63617/2 accepted/tizen/common/20160325.135542 accepted/tizen/ivi/20160325.032718 accepted/tizen/mobile/20160325.032625 accepted/tizen/tv/20160325.032654 accepted/tizen/wearable/20160325.032700 submit/tizen/20160325.022215
authorjongmyeongko <jongmyeong.ko@samsung.com>
Fri, 25 Mar 2016 02:12:20 +0000 (11:12 +0900)
committerjongmyeong ko <jongmyeong.ko@samsung.com>
Fri, 25 Mar 2016 02:13:36 +0000 (19:13 -0700)
Change-Id: I4ad147816a876bc9e0b5e3961d6814baf7e6d3cd
Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>
src/common/step/configuration/step_parse_manifest.cc

index cd98f89..65b67f1 100644 (file)
@@ -175,14 +175,15 @@ bool StepParseManifest::FillPackageInfo(manifest_x* manifest) {
   if (pkg_info->type().empty()) {
     common_installer::RequestType req_type = context_->request_type.get();
     if (req_type == RequestType::ManifestDirectInstall ||
-        req_type == RequestType::ManifestDirectUpdate)
+        req_type == RequestType::ManifestDirectUpdate) {
       manifest->type = strdup("rpm");
       if (!context_->is_preload_request.get()) {
         LOG(ERROR) << "Non-preload rpm installation not allowed";
         return false;
       }
-    else
+    } else {
       manifest->type = strdup("tpk");
+    }
   } else {
     manifest->type = strdup(pkg_info->type().c_str());
   }