Add PrivilegeLevel::PLATFORM for direct manifest installation 13/58113/4 devel/ivi submit/devel/ivi/20160202.071226
authorTomasz Iwanek <t.iwanek@samsung.com>
Wed, 27 Jan 2016 13:35:59 +0000 (14:35 +0100)
committerjongmyeong ko <jongmyeong.ko@samsung.com>
Mon, 1 Feb 2016 09:53:40 +0000 (01:53 -0800)
This commit fixes installation of preload package with background
category set.

Change-Id: I018ea4f8d3eaa88fe4a91eb6f8f7a74b24b18a01

src/common/step/step_configure.cc

index f105d06..dad9627 100644 (file)
@@ -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()