ROS feed fix

This commit is contained in:
Arseniy Kuznetsov
2024-03-31 08:23:07 +02:00
parent 88593c1765
commit f65c692700
2 changed files with 4 additions and 5 deletions

View File

@@ -23,7 +23,6 @@ from multiprocessing import Process, Event
from datetime import timedelta
from packaging.version import parse
''' Utilities / Helpers
'''
@contextmanager
@@ -305,7 +304,7 @@ def get_available_updates(channel, ttl_hash=get_ttl_hash()):
for child in channel:
# iterate over all updates
if child.tag == 'item':
title, _, _, _, _, _ = child
title, _, _, _, _ = child
# extract and parse the version number from title
version_text = re.findall(r'[\d+\.]+', title.text)[0]
version_number = parse(version_text)