1
0
mirror of https://github.com/openSUSE/osc.git synced 2025-01-12 00:46:14 +01:00

Merge pull request #1543 from dmach/fix-linkpac

Fix linkpac
This commit is contained in:
Daniel Mach 2024-04-22 09:35:00 +02:00 committed by GitHub
commit 3774aaa442
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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)