From: Zac Medico Date: Fri, 19 Dec 2008 21:36:26 +0000 (-0000) Subject: Bug #251616 - Inside _check_build_log(), remove unnecessary .* patterns from regular X-Git-Tag: v2.2_rc18~3 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=8e1df0868130660e2254e7c2abfe386979ffbea0;p=portage.git 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 --- 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:')