From: jongmyeongko Date: Wed, 24 May 2017 12:35:05 +0000 (+0900) Subject: Fix logic of 'update' attribute X-Git-Tag: accepted/tizen/unified/20170609.204215~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3a9647cc8e8e639dd2dc52ed3e8fd4b1e4979299;p=platform%2Fcore%2Fappfw%2Fwgt-backend.git Fix logic of 'update' attribute Requires and Refer to: https://review.tizen.org/gerrit/#/c/130948/ Change-Id: I408ec32d9cabd161217e4a462188c27e6366d712 Signed-off-by: jongmyeongko --- diff --git a/src/wgt/step/configuration/step_parse.cc b/src/wgt/step/configuration/step_parse.cc index 01ae9bc..6157663 100644 --- a/src/wgt/step/configuration/step_parse.cc +++ b/src/wgt/step/configuration/step_parse.cc @@ -275,12 +275,14 @@ bool StepParse::FillWidgetInfo(manifest_x* manifest) { // set update true if package is updated preload package ci::RequestType req_type = context_->request_type.get(); - if (req_type == ci::RequestType::ReadonlyUpdateInstall) + if (ci::QueryIsUpdatedPackage(context_->pkgid.get(), context_->uid.get())) manifest->update = strdup("true"); - else if (req_type == ci::RequestType::ReadonlyUpdateUninstall) - manifest->update = strdup("false"); - else if (ci::QueryIsUpdatedReadonlyPackage(context_->pkgid.get(), - context_->uid.get())) + else if (ci::QueryIsPreloadPackage(context_->pkgid.get(), + context_->uid.get()) && + (req_type == ci::RequestType::Update || + req_type == ci::RequestType::Delta || + req_type == ci::RequestType::MountUpdate || + req_type == ci::RequestType::ReadonlyUpdateInstall)) manifest->update = strdup("true"); else manifest->update = strdup("false");