mirror of
https://github.com/openSUSE/osc.git
synced 2025-08-03 22:23:38 +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()
|
elm.clear()
|
||||||
ET.SubElement(elm, 'disable')
|
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)
|
dst_meta = ET.tostring(root, encoding=ET_ENCODING)
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user