diff --git a/pym/calculate/lib/utils/portage.py b/pym/calculate/lib/utils/portage.py index 1c149a1..2c123f0 100644 --- a/pym/calculate/lib/utils/portage.py +++ b/pym/calculate/lib/utils/portage.py @@ -1166,8 +1166,8 @@ class EmergeLog(): def did_update_world_happen(self): latest_log = '\n'.join(line for line in self._get_last_changes()) - reg_emerge = r"(?s)(?<=[\s|@]world\n).*?(?=terminating)" - reg_success = r"\w*(?=\: \*\*\* exiting successfully)" + reg_emerge = r"(?s)(?<=[\s|@]world\n).*?(?=\*\*\* terminating\.)" + reg_success = r"\w*(?=\: \*\*\* exiting successfully\.)" matches = re.finditer(reg_emerge, latest_log) match_successes = [re.search(reg_success, match.group()) for match in matches] return any(match_successes)