1 |
Author: zmedico |
2 |
Date: 2008-06-23 02:40:38 +0000 (Mon, 23 Jun 2008) |
3 |
New Revision: 10763 |
4 |
|
5 |
Modified: |
6 |
main/trunk/pym/portage/__init__.py |
7 |
Log: |
8 |
Bug #228935 - Add a new "command not found" build log QA Notice. Thanks to |
9 |
Olivier Huber for the initial patch. |
10 |
|
11 |
|
12 |
Modified: main/trunk/pym/portage/__init__.py |
13 |
=================================================================== |
14 |
--- main/trunk/pym/portage/__init__.py 2008-06-23 01:24:25 UTC (rev 10762) |
15 |
+++ main/trunk/pym/portage/__init__.py 2008-06-23 02:40:38 UTC (rev 10763) |
16 |
@@ -4193,6 +4193,11 @@ |
17 |
pass |
18 |
else: |
19 |
am_maintainer_mode = [] |
20 |
+ |
21 |
+ bash_command_not_found = [] |
22 |
+ bash_command_not_found_re = re.compile( |
23 |
+ r'(.*): line (\d*): (.*): command not found$') |
24 |
+ |
25 |
configure_opts_warn = [] |
26 |
configure_opts_warn_re = re.compile( |
27 |
r'^configure: WARNING: Unrecognized options: .*') |
28 |
@@ -4204,6 +4209,10 @@ |
29 |
if am_maintainer_mode_re.search(line) is not None and \ |
30 |
am_maintainer_mode_exclude_re.search(line) is None: |
31 |
am_maintainer_mode.append(line.rstrip("\n")) |
32 |
+ |
33 |
+ if bash_command_not_found_re.match(line) is not None: |
34 |
+ bash_command_not_found.append(line.rstrip("\n")) |
35 |
+ |
36 |
if configure_opts_warn_re.match(line) is not None: |
37 |
configure_opts_warn.append(line.rstrip("\n")) |
38 |
finally: |
39 |
@@ -4234,6 +4243,12 @@ |
40 |
wrap_width)) |
41 |
_eqawarn(msg) |
42 |
|
43 |
+ if bash_command_not_found: |
44 |
+ msg = ["QA Notice: command not found:"] |
45 |
+ msg.append("") |
46 |
+ msg.extend("\t" + line for line in bash_command_not_found) |
47 |
+ _eqawarn(msg) |
48 |
+ |
49 |
if configure_opts_warn: |
50 |
msg = ["QA Notice: Unrecognized configure options:"] |
51 |
msg.append("") |
52 |
|
53 |
-- |
54 |
gentoo-commits@l.g.o mailing list |