From f9887235293708a82c8c20d16d0a6530de8fea3c Mon Sep 17 00:00:00 2001 From: Thomas Roos Date: Tue, 9 Jan 2024 10:06:39 +0000 Subject: [PATCH] auto-upgrader: change regex to match upgrade check output string for check-upgrade-status was changed on devtool --- auto-upgrader/upgrader/updates.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/auto-upgrader/upgrader/updates.py b/auto-upgrader/upgrader/updates.py index a84a08b..8712f8b 100644 --- a/auto-upgrader/upgrader/updates.py +++ b/auto-upgrader/upgrader/updates.py @@ -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)}")