From: Tomasz Iwanek Date: Wed, 27 Jan 2016 13:35:59 +0000 (+0100) Subject: Add PrivilegeLevel::PLATFORM for direct manifest installation X-Git-Tag: submit/devel/ivi/20160202.071226^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8606cd69df501131d46e267b315e4b51a22ec1eb;p=platform%2Fcore%2Fappfw%2Fapp-installers.git Add PrivilegeLevel::PLATFORM for direct manifest installation This commit fixes installation of preload package with background category set. Change-Id: I018ea4f8d3eaa88fe4a91eb6f8f7a74b24b18a01 --- diff --git a/src/common/step/step_configure.cc b/src/common/step/step_configure.cc index f105d06c..dad96275 100644 --- a/src/common/step/step_configure.cc +++ b/src/common/step/step_configure.cc @@ -84,6 +84,12 @@ Step::Status StepConfigure::process() { context_->xml_path.set(xml_path); context_->pkg_type.set(kRpmPackageType); // temporary fix as rpm + // TODO(t.iwanek): setting privilege level here should be removed because + // of the fact that many apps may not have PLATFORM level. User can + // malform platform xml or just reinstall app with direct-manifest + // installation mode and gain "system" background category + context_->privilege_level.set(PrivilegeLevel::PLATFORM); + if (!bf::exists(context_->pkg_path.get())) { LOG(INFO) << "[ManifestDirect] Create pkg_path(" << context_->pkg_path.get()