summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2008-12-19 21:36:26 +0000
committerZac Medico <zmedico@gentoo.org>2008-12-19 21:36:26 +0000
commit8e1df0868130660e2254e7c2abfe386979ffbea0 (patch)
treeef052bc8b280598258154e5b96821bfaf01bd184
parent6c854d104004077d6266ca3a18113a08cb8adb22 (diff)
downloadportage-8e1df0868130660e2254e7c2abfe386979ffbea0.tar.gz
portage-8e1df0868130660e2254e7c2abfe386979ffbea0.tar.bz2
portage-8e1df0868130660e2254e7c2abfe386979ffbea0.zip
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
-rw-r--r--pym/portage/__init__.py6
1 files 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:')