Skip to content

Commit

Permalink
Updates manager adapted to new pip format
Browse files Browse the repository at this point in the history
  • Loading branch information
esantamariavazquez committed Jun 26, 2024
1 parent 4508171 commit 6c25d0c
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/updates_manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,10 +80,11 @@ def check_for_medusa_kernel_updates(self):
for line in f:
if line.find('medusa-kernel') == 0:
requirement = line.replace('medusa-kernel', '')
requirement = requirement.replace('\n', '')
# It must have this format >=min_version<max_version
requirement = requirement.split('<')
requirement = requirement.split(',')
min_version = requirement[0].replace('>=', '')
max_version = requirement[1]
max_version = requirement[1].replace('<', '')
break
if requirement is None:
print('The file requirements.txt has been corrupted. '
Expand Down

0 comments on commit 6c25d0c

Please sign in to comment.