Change-Id: I4ad147816a876bc9e0b5e3961d6814baf7e6d3cd
Signed-off-by: jongmyeongko <jongmyeong.ko@samsung.com>
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());
}