mirror of
https://github.com/KevinMidboe/mktxp-no-cli.git
synced 2025-10-29 17:50:23 +00:00
ROS feed fix
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user