mirror of
https://github.com/openSUSE/osc.git
synced 2024-11-10 06:46:15 +01:00
- linkpac: make this osc subcommand work again: sync metadata if edit_meta() is
called with change_is_required=False. - linkpac: correctly set the destination project in the template used for the new package, although the api didn't seem to notice the mistake so far.
This commit is contained in:
parent
f275b58ed9
commit
6057f2c063
@ -943,6 +943,7 @@ def edit_meta(prj, pac, template=new_package_templ, change_is_required=True):
|
||||
else:
|
||||
break
|
||||
else:
|
||||
f.sync()
|
||||
break
|
||||
|
||||
|
||||
@ -1155,6 +1156,7 @@ def link_pac(src_project, src_package, dst_project, dst_package):
|
||||
tree = ET.parse(StringIO(''.join(src_meta)))
|
||||
root = tree.getroot()
|
||||
root.set('name', '%s')
|
||||
root.set('project', dst_project)
|
||||
tree.find('person').set('userid', '%s')
|
||||
buf = StringIO()
|
||||
tree.write(buf)
|
||||
|
Loading…
Reference in New Issue
Block a user