1
0
mirror of https://github.com/openSUSE/osc.git synced 2025-09-06 13:18:42 +02:00

Merge pull request #1543 from dmach/fix-linkpac

Fix linkpac
This commit is contained in:
2024-04-22 09:35:00 +02:00
committed by GitHub

View File

@@ -3287,7 +3287,7 @@ def link_pac(
if disable_build or disable_publish:
meta_change = True
root = ET.fromstring(''.join(dst_meta))
root = ET.fromstring(b"".join(dst_meta))
if disable_build:
elm = root.find('build')
@@ -3303,7 +3303,9 @@ def link_pac(
elm.clear()
ET.SubElement(elm, 'disable')
root.remove('scmsync')
elm = root.find("scmsync")
if elm is not None:
root.remove(elm)
dst_meta = ET.tostring(root, encoding=ET_ENCODING)