1
0
mirror of https://github.com/openSUSE/osc.git synced 2025-02-04 18:46:17 +01:00

Merge branch 'fix_decoding_linkpac' of https://github.com/lethliel/osc

Fix link_pac (meta_exists returns a list of bytes (if create_new is False)).
This commit is contained in:
Marcus Huewe 2019-11-04 15:11:57 +01:00
commit 8bb96776a8

View File

@ -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)),
template_args=None,
create_new=False, apiurl=apiurl)
root = ET.fromstring(''.join(dst_meta))
root = ET.fromstring(b''.join(dst_meta))
if root.get('project') != dst_project:
# The source comes from a different project via a project link, we need to create this instance
meta_change = True