From: Sangyoon Jang Date: Mon, 9 Dec 2019 12:04:58 +0000 (+0900) Subject: Keep removable attribute when package update X-Git-Tag: accepted/tizen/5.5/unified/20200303.170612~7 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2897b4a6a1abdfd71b7d1f6c4a5cfd6f18487213;p=platform%2Fcore%2Fappfw%2Fapp-installers.git Keep removable attribute when package update Change-Id: I3e6bcd8103d2d5bf9a8b2c79fa36242437b86bfc Signed-off-by: Sangyoon Jang --- diff --git a/src/common/step/configuration/step_parse_preload.cc b/src/common/step/configuration/step_parse_preload.cc index 6d5491a..bc16367 100644 --- a/src/common/step/configuration/step_parse_preload.cc +++ b/src/common/step/configuration/step_parse_preload.cc @@ -64,6 +64,15 @@ ci::Step::Status StepParsePreload::process() { } } + // In case of update, keep removable value + if (req_type == RequestType::Update || + req_type == RequestType::Delta || + req_type == RequestType::MountUpdate) { + bool is_removable = pkg_query.IsRemovablePackage(); + context_->manifest_data.get()->removable = + strdup(is_removable ? "true" : "false"); + } + const char* removable_val = context_->manifest_data.get()->removable; if (!removable_val || (removable_val && strlen(removable_val) == 0)) { if (removable_val)