1
0
mirror of https://gitlab.com/openlp/packaging.git synced 2024-12-22 04:52:50 +00:00

Fix for xml handling

This commit is contained in:
Tomas Groth 2019-04-10 21:01:32 +02:00
parent 40f1c24ecd
commit e8d780bf81

View File

@ -183,9 +183,8 @@ class WindowsBuilder(Builder):
self._print_verbose('Creating XML fragments from files and directories')
fragments = self._get_fragments_from_files(self.dist_path)
self._print_verbose('Inserting XML fragments into base WiX file')
wix = tree.getroot()
for fragment in fragments:
wix.append(fragment)
tree.append(fragment)
self._print_verbose('Writing new WiX file')
with open(os.path.join(self.config_path, 'OpenLP.wxs'), 'wb') as f:
f.write(tostring(tree, encoding='utf-8', xml_declaration=True, pretty_print=True))