Revert "Xml manifest path in InstallerContext" 93/38193/1
authorWojciech Kosowicz <w.kosowicz@samsung.com>
Mon, 13 Apr 2015 13:32:12 +0000 (15:32 +0200)
committerPawel Sikorski <p.sikorski@samsung.com>
Tue, 14 Apr 2015 09:17:56 +0000 (11:17 +0200)
This commit needs to be reverted as it is removing setting up
variable which is later used in generating xml. Therefore
widgets do not install as crash occurs when calling function
on empty variable

Change-Id: Ic91a94851e00c35e4fa5bcd77c90b4dc556b7562
Signed-off-by: Wojciech Kosowicz <w.kosowicz@samsung.com>
src/common/context_installer.h
src/common/step/step_generate_xml.cc

index 2d5532f..678223b 100644 (file)
@@ -5,8 +5,6 @@
 
 #include <pkgmgr_parser.h>
 
-#include <boost/filesystem/path.hpp>
-
 #include <unistd.h>
 #include <sys/types.h>
 
@@ -58,7 +56,7 @@ class ContextInstaller {
   Property<manifest_x*> manifest_data;
 
   // path to manifest xml file used to register data in databases
-  Property<boost::filesystem::path> xml_path;
+  Property<std::string> xml_path;
 
   // pkgid used for update or uninstallation processing
   Property<std::string> pkgid;
index 89ad27b..e393538 100644 (file)
@@ -102,6 +102,11 @@ 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)) {