1
0
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:
Michal Marek 2008-08-21 12:03:42 +00:00
parent 854fe0d97a
commit b46c000b61

View File

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