1
0
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:
Adrian Schröter 2017-03-20 16:05:39 +01:00
parent 3ab3ff0b1c
commit 340a72ee83

View File

@ -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)