From 8606cd69df501131d46e267b315e4b51a22ec1eb Mon Sep 17 00:00:00 2001 From: Tomasz Iwanek Date: Wed, 27 Jan 2016 14:35:59 +0100 Subject: [PATCH] Add PrivilegeLevel::PLATFORM for direct manifest installation This commit fixes installation of preload package with background category set. Change-Id: I018ea4f8d3eaa88fe4a91eb6f8f7a74b24b18a01 --- src/common/step/step_configure.cc | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/common/step/step_configure.cc b/src/common/step/step_configure.cc index f105d06..dad9627 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() -- 2.7.4