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:
parent
1e64187151
commit
6f653511ca
@ -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)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user