Skip to content

Commit

Permalink
Fix crash when removing 'scmsync' element from dst package meta in 'l…
Browse files Browse the repository at this point in the history
…inkpac' command
  • Loading branch information
dmach committed Apr 19, 2024
1 parent 1e64187 commit 6f65351
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion osc/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 6f65351

Please sign in to comment.