log_analyser: Fix homebrew detection (#78)

This commit is contained in:
TSRBerry 2023-10-09 22:52:29 +02:00 committed by GitHub
parent 97a26a76ad
commit c33f4f29a2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -37,7 +37,9 @@ class LogAnalyser:
@staticmethod @staticmethod
def is_homebrew(log_file: str) -> bool: def is_homebrew(log_file: str) -> bool:
return re.search("LoadApplication: Loading as Homebrew", log_file) is not None return (
re.search("Load.*Application: Loading as [Hh]omebrew", log_file) is not None
)
@staticmethod @staticmethod
def get_main_ro_section(log_file: str) -> Optional[dict[str, str]]: def get_main_ro_section(log_file: str) -> Optional[dict[str, str]]: