mirror of
https://github.com/openSUSE/osc.git
synced 2024-11-10 06:46:15 +01:00
never take releasename blindly (eg. on linkpac). It needs to be set
explicit
This commit is contained in:
parent
3ab3ff0b1c
commit
340a72ee83
@ -4866,6 +4866,9 @@ def replace_pkg_meta(pkgmeta, new_name, new_prj, keep_maintainers = False,
|
||||
root = ET.fromstring(''.join(pkgmeta))
|
||||
root.set('name', new_name)
|
||||
root.set('project', new_prj)
|
||||
# never take releasename, it needs to be explicit
|
||||
for releasename in root.findall('releasename'):
|
||||
root.remove(releasename)
|
||||
if not keep_maintainers:
|
||||
for person in root.findall('person'):
|
||||
root.remove(person)
|
||||
|
Loading…
Reference in New Issue
Block a user