Fix wrong manifest xml file name 11/35511/4
authorYoumin Ha <youmin.ha@samsung.com>
Tue, 17 Feb 2015 02:52:55 +0000 (11:52 +0900)
committerYoumin Ha <youmin.ha@samsung.com>
Mon, 23 Feb 2015 08:53:20 +0000 (17:53 +0900)
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 <youmin.ha@samsung.com>
src/common/step/step_generate_xml.cc
src/common/step/step_parse.cc

index 3f16ece..e869e41 100644 (file)
@@ -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;
index 6d73767..7c7471d 100644 (file)
@@ -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();