mirror of
https://github.com/openSUSE/osc.git
synced 2025-02-10 04:55:48 +01:00
fix decoding for osc linkpac
in def link_pac dst_meta is a list of bytes-like objects. so b''.join(dst_meta) is needed
This commit is contained in:
parent
992255b0df
commit
02207d719c
@ -5142,7 +5142,7 @@ def link_pac(src_project, src_package, dst_project, dst_package, force, rev='',
|
|||||||
path_args=(quote_plus(dst_project), quote_plus(dst_package)),
|
path_args=(quote_plus(dst_project), quote_plus(dst_package)),
|
||||||
template_args=None,
|
template_args=None,
|
||||||
create_new=False, apiurl=apiurl)
|
create_new=False, apiurl=apiurl)
|
||||||
root = ET.fromstring(''.join(dst_meta))
|
root = ET.fromstring(b''.join(dst_meta))
|
||||||
if root.get('project') != dst_project:
|
if root.get('project') != dst_project:
|
||||||
# The source comes from a different project via a project link, we need to create this instance
|
# The source comes from a different project via a project link, we need to create this instance
|
||||||
meta_change = True
|
meta_change = True
|
||||||
|
Loading…
x
Reference in New Issue
Block a user