From 24f138e3e28dc805f10fbf30ee438b6472b4f22a Mon Sep 17 00:00:00 2001 From: Youmin Ha Date: Tue, 17 Feb 2015 11:52:55 +0900 Subject: [PATCH] Fix wrong manifest xml file name The manifest file name is wrong. Desired xml filename is 'org.tizen.hello.xml', but the current implementation removes last extension and put '.xml' at the end. This commit fixes the name of the generated manifest xml file. For wgt packages, '*.wgt.xml' is present, but that's not the issue. Change-Id: I57e2506898f17c0853fa42f3172225b69cd9819c Signed-Off-By: Youmin Ha --- src/common/step/step_generate_xml.cc | 2 +- src/common/step/step_parse.cc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/common/step/step_generate_xml.cc b/src/common/step/step_generate_xml.cc index 3f16ece..e869e41 100644 --- a/src/common/step/step_generate_xml.cc +++ b/src/common/step/step_generate_xml.cc @@ -26,7 +26,7 @@ Step::Status StepGenerateXml::process() { fs::path xml_path = fs::path(getUserManifestPath(context_->uid())) / fs::path(context_->pkgid()); - xml_path.replace_extension(".xml"); + xml_path += ".xml"; context_->set_xml_path(xml_path.string()); boost::system::error_code error; diff --git a/src/common/step/step_parse.cc b/src/common/step/step_parse.cc index 6d73767..7c7471d 100644 --- a/src/common/step/step_parse.cc +++ b/src/common/step/step_parse.cc @@ -21,7 +21,7 @@ namespace fs = boost::filesystem; Step::Status StepParse::process() { fs::path xml_path = fs::path(getUserManifestPath(context_->uid())) / fs::path(context_->pkgid()); - xml_path.replace_extension(".xml"); + xml_path += ".xml"; context_->set_xml_path(xml_path.string()); xmlInitParser(); -- 2.7.4