diff options
author | Zac Medico <zmedico@gentoo.org> | 2008-11-19 06:48:36 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2008-11-19 06:48:36 +0000 |
commit | 77f1c88c7d2d6ec4ed157bf226795a04221bd8df (patch) | |
tree | c7fcee935c05253398df1440e82c57856fad02bb /pym | |
parent | 742700cc323521cfe19ba3037d63669c21a17fb9 (diff) | |
download | portage-77f1c88c7d2d6ec4ed157bf226795a04221bd8df.tar.gz portage-77f1c88c7d2d6ec4ed157bf226795a04221bd8df.tar.bz2 portage-77f1c88c7d2d6ec4ed157bf226795a04221bd8df.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. (trunk r11999)
svn path=/main/branches/2.1.6/; revision=12000
Diffstat (limited to 'pym')
-rw-r--r-- | pym/portage/__init__.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/pym/portage/__init__.py b/pym/portage/__init__.py index 8aab329b5..3415f5760 100644 --- a/pym/portage/__init__.py +++ b/pym/portage/__init__.py @@ -4499,6 +4499,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$') @@ -4520,7 +4521,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: |