Hybrid installer set default blanks text node support off for
generating/merging manifest. However, this may cause unexpected result
at other library which is using libxml2. So hybrid installer should
rollback this support.
This patch fixes smoke test failures.
Change-Id: I89aa9b99a30e5068e93f44415829f94abca0ff40
Signed-off-by: Sangyoon Jang <s89.jang@samsung.com>
bool StepGenerateXml::LoadXmlDocument(const bf::path& wgt_xml_path,
const bf::path& tpk_xml_path) {
// trim blanks
- xmlKeepBlanksDefault(0);
+ int keep_blanks = xmlKeepBlanksDefault(0);
wgt_doc_ = xmlParseFile(wgt_xml_path.string().c_str());
if (!wgt_doc_) {
LOG(ERROR) << "Failed to parse file: " << wgt_xml_path;
+ xmlKeepBlanksDefault(keep_blanks);
return false;
}
tpk_doc_ = xmlParseFile(tpk_xml_path.string().c_str());
if (!tpk_doc_) {
LOG(ERROR) << "Failed to parse file: " << tpk_xml_path;
+ xmlKeepBlanksDefault(keep_blanks);
return false;
}
+ xmlKeepBlanksDefault(keep_blanks);
return true;
}