From 8e1df0868130660e2254e7c2abfe386979ffbea0 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Fri, 19 Dec 2008 21:36:26 +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. svn path=/main/trunk/; revision=12259 --- 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 fc42bd3af..1267efb90 100644 --- a/pym/portage/__init__.py +++ b/pym/portage/__init__.py @@ -4572,10 +4572,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