summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2008-11-19 06:47:55 +0000
committerZac Medico <zmedico@gentoo.org>2008-11-19 06:47:55 +0000
commit930bbbf31c10265b27825426f1eff6d7f17395e6 (patch)
treede0ec0fb251fb7e64b57039a20b8357f876f730e
parentfaac6ea62ba56883fdeb82a7da418735504a5cdd (diff)
downloadportage-930bbbf31c10265b27825426f1eff6d7f17395e6.tar.gz
portage-930bbbf31c10265b27825426f1eff6d7f17395e6.tar.bz2
portage-930bbbf31c10265b27825426f1eff6d7f17395e6.zip
Bug #245716 - When generating QA notices for 'command not found' messages in
the build log, exclude messages that are emitted from configure scripts since those are normal in some cases. svn path=/main/trunk/; revision=11999
-rw-r--r--pym/portage/__init__.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/pym/portage/__init__.py b/pym/portage/__init__.py
index 2b3a8ac10..91f5486d6 100644
--- a/pym/portage/__init__.py
+++ b/pym/portage/__init__.py
@@ -4509,6 +4509,7 @@ def _check_build_log(mysettings, out=None):
bash_command_not_found = []
bash_command_not_found_re = re.compile(
r'(.*): line (\d*): (.*): command not found$')
+ command_not_found_exclude_re = re.compile(r'/configure: line ')
helper_missing_file = []
helper_missing_file_re = re.compile(
r'^!!! (do|new).*: .* does not exist$')
@@ -4530,7 +4531,8 @@ def _check_build_log(mysettings, out=None):
am_maintainer_mode_exclude_re.search(line) is None:
am_maintainer_mode.append(line.rstrip("\n"))
- if bash_command_not_found_re.match(line) is not None:
+ if bash_command_not_found_re.match(line) is not None and \
+ command_not_found_exclude_re.search(line) is None:
bash_command_not_found.append(line.rstrip("\n"))
if helper_missing_file_re.match(line) is not None: