mirror of
https://gitlab.com/openlp/packaging.git
synced 2024-12-22 13:02:50 +00:00
Fix for xml handling
This commit is contained in:
parent
40f1c24ecd
commit
e8d780bf81
@ -183,9 +183,8 @@ class WindowsBuilder(Builder):
|
|||||||
self._print_verbose('Creating XML fragments from files and directories')
|
self._print_verbose('Creating XML fragments from files and directories')
|
||||||
fragments = self._get_fragments_from_files(self.dist_path)
|
fragments = self._get_fragments_from_files(self.dist_path)
|
||||||
self._print_verbose('Inserting XML fragments into base WiX file')
|
self._print_verbose('Inserting XML fragments into base WiX file')
|
||||||
wix = tree.getroot()
|
|
||||||
for fragment in fragments:
|
for fragment in fragments:
|
||||||
wix.append(fragment)
|
tree.append(fragment)
|
||||||
self._print_verbose('Writing new WiX file')
|
self._print_verbose('Writing new WiX file')
|
||||||
with open(os.path.join(self.config_path, 'OpenLP.wxs'), 'wb') as f:
|
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))
|
f.write(tostring(tree, encoding='utf-8', xml_declaration=True, pretty_print=True))
|
||||||
|
Loading…
Reference in New Issue
Block a user