Skip to content

Commit

Permalink
More error report matching
Browse files Browse the repository at this point in the history
Signed-off-by: William Douglas <[email protected]>
  • Loading branch information
bryteise committed Aug 1, 2024
1 parent 0c573b6 commit f35655a
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions autospec/util.py
Original file line number Diff line number Diff line change
Expand Up @@ -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<package>.*) .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<package>.*) 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<module>.*)’", line):
_log_error("Failed to find " + m.group('module'))
return True
if m := re.match(r"Failed to find ‘(?P<module>.*)’", line):
_log_error("Failed to find " + m.group('module'))
return True

return False


Expand Down

0 comments on commit f35655a

Please sign in to comment.