From 1dbf6ea1e793d493054b2fdaa724aa52acd8b7e4 Mon Sep 17 00:00:00 2001 From: William Douglas Date: Thu, 1 Aug 2024 11:44:25 -0700 Subject: [PATCH] More error report matching Signed-off-by: William Douglas --- autospec/util.py | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/autospec/util.py b/autospec/util.py index c459bf74..8c7c5cb4 100644 --- a/autospec/util.py +++ b/autospec/util.py @@ -90,6 +90,20 @@ def _process_line(line, prev_line, current_patch, reported_patches, error): _log_error("Compiler: " + m.group('error')) return True + if m := re.match(r'Could NOT find (?P.*) .missing', line): + _log_error("CMake module " + m.group('package') + " not found") + return True + if m := re.match(r'Could not find a package configuration file provided by (?P.*) with', line): + _log_error("CMake module " + m.group('package') + " not found") + return True + # Unable to find program 'gperf' + if m := re.match(r"Failed to find program ‘(?P.*)’", line): + _log_error("Failed to find " + m.group('module')) + return True + if m := re.match(r"Failed to find ‘(?P.*)’", line): + _log_error("Failed to find " + m.group('module')) + return True + return False