Gentoo Archives: gentoo-commits

From: "Zac Medico (zmedico)" <zmedico@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] portage r11999 - main/trunk/pym/portage
Date: Wed, 19 Nov 2008 06:48:00
Message-Id: E1L2gqy-0005NY-Be@stork.gentoo.org
1 Author: zmedico
2 Date: 2008-11-19 06:47:55 +0000 (Wed, 19 Nov 2008)
3 New Revision: 11999
4
5 Modified:
6 main/trunk/pym/portage/__init__.py
7 Log:
8 Bug #245716 - When generating QA notices for 'command not found' messages in
9 the build log, exclude messages that are emitted from configure scripts since
10 those are normal in some cases.
11
12
13 Modified: main/trunk/pym/portage/__init__.py
14 ===================================================================
15 --- main/trunk/pym/portage/__init__.py 2008-11-19 03:15:33 UTC (rev 11998)
16 +++ main/trunk/pym/portage/__init__.py 2008-11-19 06:47:55 UTC (rev 11999)
17 @@ -4509,6 +4509,7 @@
18 bash_command_not_found = []
19 bash_command_not_found_re = re.compile(
20 r'(.*): line (\d*): (.*): command not found$')
21 + command_not_found_exclude_re = re.compile(r'/configure: line ')
22 helper_missing_file = []
23 helper_missing_file_re = re.compile(
24 r'^!!! (do|new).*: .* does not exist$')
25 @@ -4530,7 +4531,8 @@
26 am_maintainer_mode_exclude_re.search(line) is None:
27 am_maintainer_mode.append(line.rstrip("\n"))
28
29 - if bash_command_not_found_re.match(line) is not None:
30 + if bash_command_not_found_re.match(line) is not None and \
31 + command_not_found_exclude_re.search(line) is None:
32 bash_command_not_found.append(line.rstrip("\n"))
33
34 if helper_missing_file_re.match(line) is not None: