Xml manifest path in InstallerContext 45/37945/2
authorTomasz Iwanek <t.iwanek@samsung.com>
Fri, 27 Mar 2015 13:26:55 +0000 (14:26 +0100)
committerPawel Sikorski <p.sikorski@samsung.com>
Fri, 10 Apr 2015 09:24:59 +0000 (02:24 -0700)
This commit changes xml_path type to fs::type.
It also removes unnecessary setting from step_generate_xml

Change-Id: I2bc99da823959a4968802ca47367b6b1f2fca57c
Signed-off-by: Pawel Sikorski <p.sikorski@samsung.com>
src/common/context_installer.h
src/common/step/step_generate_xml.cc

index 678223b..2d5532f 100644 (file)
@@ -5,6 +5,8 @@
 
 #include <pkgmgr_parser.h>
 
+#include <boost/filesystem/path.hpp>
+
 #include <unistd.h>
 #include <sys/types.h>
 
@@ -56,7 +58,7 @@ class ContextInstaller {
   Property<manifest_x*> manifest_data;
 
   // path to manifest xml file used to register data in databases
-  Property<std::string> xml_path;
+  Property<boost::filesystem::path> xml_path;
 
   // pkgid used for update or uninstallation processing
   Property<std::string> pkgid;
index e393538..89ad27b 100644 (file)
@@ -102,11 +102,6 @@ Step::Status StepGenerateXml::GenerateApplicationCommonXml(T* app,
 Step::Status StepGenerateXml::process() {
   assert(context_->manifest_data.get());
 
-  fs::path xml_path = fs::path(getUserManifestPath(context_->uid.get()))
-      / fs::path(context_->pkgid.get());
-  xml_path += ".xml";
-
-  context_->xml_path.set(xml_path.string());
   boost::system::error_code error;
   if ((!context_->manifest_data.get()->uiapplication) &&
      (!context_->manifest_data.get()->serviceapplication)) {