Skip to content

Commit

Permalink
auto-upgrader: change regex to match upgrade check
Browse files Browse the repository at this point in the history
output string for check-upgrade-status was changed on devtool
  • Loading branch information
thomas-roos committed Jan 9, 2024
1 parent df4f2be commit f988723
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion auto-upgrader/upgrader/updates.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ def check_for_updates(recipe: str) -> bool:

def _check_for_updates(recipe: str) -> Optional[dict]:
(_, stderr, _) = run(f"devtool check-upgrade-status {recipe}")
update_re = r"INFO:\s+" + recipe + r"\s+([^\s]+)\s+([^\s]+)"
update_re = recipe + r"\s+([^\s]+)\s+([^\s]+)"
m = re.search(update_re, stderr)
if m:
logger.info(f"Update for {recipe}:\t{m.group(1)}\t->\t{m.group(2)}")
Expand Down

0 comments on commit f988723

Please sign in to comment.