mirror of
https://github.com/openSUSE/osc.git
synced 2025-01-25 22:36:13 +01:00
commit
3774aaa442
@ -3287,7 +3287,7 @@ def link_pac(
|
|||||||
|
|
||||||
if disable_build or disable_publish:
|
if disable_build or disable_publish:
|
||||||
meta_change = True
|
meta_change = True
|
||||||
root = ET.fromstring(''.join(dst_meta))
|
root = ET.fromstring(b"".join(dst_meta))
|
||||||
|
|
||||||
if disable_build:
|
if disable_build:
|
||||||
elm = root.find('build')
|
elm = root.find('build')
|
||||||
@ -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)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user