Bug #251616 - Inside _check_build_log(), remove unnecessary .* patterns from regular
authorZac Medico <zmedico@gentoo.org>
Sat, 20 Dec 2008 19:46:18 +0000 (19:46 -0000)
committerZac Medico <zmedico@gentoo.org>
Sat, 20 Dec 2008 19:46:18 +0000 (19:46 -0000)
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

index 48f0b69e6166f5e3ebbb570d8e4a3031ade0b7bc..032c2c64d0ef08e6f7a9ae6e3a66f3f120c0fc1b 100644 (file)
@@ -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:')