1
0
mirror of https://github.com/openSUSE/osc.git synced 2025-03-25 00:20:04 +01:00

Fix crash when removing 'scmsync' element from dst package meta in 'linkpac' command

This commit is contained in:
Daniel Mach 2024-04-19 14:01:08 +02:00
parent 1e64187151
commit 6f653511ca

View File

@ -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)