From 77a9caaedcb3005a1e94fef7ea8618e42852a260 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Sat, 20 Dec 2008 19:46:18 +0000 Subject: [PATCH] Bug #251616 - Inside _check_build_log(), remove unnecessary .* patterns from regular expressions. These patterns trigger extreme performance issues when matched against extremely large lines such as those produced by dev-util/bzr test suite when it uses \r to rewrite the same line thousands of times. (trunk r12259) svn path=/main/branches/2.1.6/; revision=12262 --- pym/portage/__init__.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pym/portage/__init__.py b/pym/portage/__init__.py index 48f0b69e6..032c2c64d 100644 --- a/pym/portage/__init__.py +++ b/pym/portage/__init__.py @@ -4562,10 +4562,10 @@ def _check_build_log(mysettings, out=None): configure_opts_warn = [] configure_opts_warn_re = re.compile( - r'^configure: WARNING: Unrecognized options: .*') - am_maintainer_mode_re = re.compile(r'.*/missing --run .*') + r'^configure: WARNING: Unrecognized options: ') + am_maintainer_mode_re = re.compile(r'/missing --run ') am_maintainer_mode_exclude_re = \ - re.compile(r'.*/missing --run (autoheader|makeinfo)') + re.compile(r'/missing --run (autoheader|makeinfo)') make_jobserver_re = \ re.compile(r'g?make\[\d+\]: warning: jobserver unavailable:') -- 2.26.2