mirror of
https://github.com/openSUSE/osc.git
synced 2025-01-27 07:06:13 +01:00
update_package_meta: correctly replace existing <url> element
This commit is contained in:
parent
854fe0d97a
commit
b46c000b61
@ -1070,7 +1070,7 @@ rev: %s
|
||||
tree.find('title').text = self.summary
|
||||
tree.find('description').text = ''.join(self.descr)
|
||||
url = tree.find('url')
|
||||
if not url:
|
||||
if url == None:
|
||||
url = ET.SubElement(tree.getroot(), 'url')
|
||||
url.text = self.url
|
||||
tree.write(filename)
|
||||
|
Loading…
Reference in New Issue
Block a user