Skip to content

Commit

Permalink
Fixed handling <implementation>s and <group>s without a version attri…
Browse files Browse the repository at this point in the history
…bute
  • Loading branch information
bastianeicher committed Feb 23, 2024
1 parent e5d3189 commit 8aaff53
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion 0watch.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,8 @@ def already_known(version):
if path.exists(feed_file):
doc = minidom.parse(feed_file)
for elem in doc.getElementsByTagNameNS(XMLNS_IFACE, 'implementation') + doc.getElementsByTagNameNS(XMLNS_IFACE, 'group'):
if model.parse_version(elem.getAttribute('version')) == version: return True
v = elem.getAttribute('version')
if v != '' and model.parse_version(v) == version: return True
return False

for release in releases:
Expand Down

0 comments on commit 8aaff53

Please sign in to comment.