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>
#include <pkgmgr_parser.h>
+#include <boost/filesystem/path.hpp>
+
#include <unistd.h>
#include <sys/types.h>
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;
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)) {