mirror of
https://github.com/openSUSE/osc.git
synced 2025-08-07 16:04:03 +02:00
Fix crash when removing 'scmsync' element from dst package meta in 'linkpac' command
This commit is contained in:
@@ -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)
|
||||
|
||||
|
Reference in New Issue
Block a user