diff options
author | Zac Medico <zmedico@gentoo.org> | 2008-12-19 21:36:26 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2008-12-19 21:36:26 +0000 |
commit | 8e1df0868130660e2254e7c2abfe386979ffbea0 (patch) | |
tree | ef052bc8b280598258154e5b96821bfaf01bd184 /pym/portage | |
parent | 6c854d104004077d6266ca3a18113a08cb8adb22 (diff) | |
download | portage-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
Diffstat (limited to 'pym/portage')
-rw-r--r-- | pym/portage/__init__.py | 6 |
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:') |