author | Dario Sestito <darios@symbian.org> |
Wed, 07 Apr 2010 18:16:50 +0100 | |
changeset 210 | 6669177dab54 |
parent 209 | ba90e30c0f3c |
child 211 | c01247054e72 |
permissions | -rw-r--r-- |
176 | 1 |
# Copyright (c) 2009 Symbian Foundation Ltd |
2 |
# This component and the accompanying materials are made available |
|
3 |
# under the terms of the License "Eclipse Public License v1.0" |
|
4 |
# which accompanies this distribution, and is available |
|
5 |
# at the URL "http://www.eclipse.org/legal/epl-v10.html". |
|
6 |
# |
|
7 |
# Initial Contributors: |
|
8 |
# Symbian Foundation Ltd - initial contribution. |
|
9 |
# |
|
10 |
# Contributors: |
|
11 |
# |
|
12 |
# Description: |
|
13 |
# Raptor parser module. |
|
14 |
# Extract, analyzes and dumps raptor errors i.e. content of <error> tags from a raptor log file |
|
15 |
||
16 |
package RaptorError; |
|
17 |
||
18 |
use strict; |
|
19 |
use RaptorCommon; |
|
20 |
||
21 |
our $reset_status = {}; |
|
22 |
my $buildlog_status = {}; |
|
23 |
my $buildlog_error_status = {}; |
|
24 |
||
25 |
$reset_status->{name} = 'reset_status'; |
|
26 |
$reset_status->{next_status} = {buildlog=>$buildlog_status}; |
|
27 |
||
28 |
$buildlog_status->{name} = 'buildlog_status'; |
|
29 |
$buildlog_status->{next_status} = {error=>$buildlog_error_status}; |
|
30 |
$buildlog_status->{on_start} = 'RaptorError::on_start_buildlog'; |
|
31 |
||
32 |
$buildlog_error_status->{name} = 'buildlog_error_status'; |
|
33 |
$buildlog_error_status->{next_status} = {}; |
|
34 |
$buildlog_error_status->{on_start} = 'RaptorError::on_start_buildlog_error'; |
|
35 |
$buildlog_error_status->{on_end} = 'RaptorError::on_end_buildlog_error'; |
|
36 |
$buildlog_error_status->{on_chars} = 'RaptorError::on_chars_buildlog_error'; |
|
37 |
||
38 |
my $filename = ''; |
|
39 |
||
209
ba90e30c0f3c
Use the bldinf attribute to assign Raptor errors and warnings to the related package
Dario Sestito <darios@symbian.org>
parents:
185
diff
changeset
|
40 |
my $raptor_error_info = {}; |
ba90e30c0f3c
Use the bldinf attribute to assign Raptor errors and warnings to the related package
Dario Sestito <darios@symbian.org>
parents:
185
diff
changeset
|
41 |
|
176 | 42 |
my $characters = ''; |
43 |
||
44 |
my $CATEGORY_RAPTORERROR = 'raptor_error'; |
|
45 |
my $CATEGORY_RAPTORERROR_CANNOTPROCESSSCHEMAVERSION = 'cannot_process_schema_version'; |
|
46 |
my $CATEGORY_RAPTORERROR_NOBLDINFFOUND = 'no_bld_inf_found'; |
|
47 |
my $CATEGORY_RAPTORERROR_CANTFINDMMPFILE = 'cant_find_mmp_file'; |
|
48 |
my $CATEGORY_RAPTORERROR_MAKEEXITEDWITHERRORS = 'make_exited_with_errors'; |
|
49 |
my $CATEGORY_RAPTORERROR_TOOLDIDNOTRETURNVERSION = 'tool_didnot_return_version'; |
|
50 |
my $CATEGORY_RAPTORERROR_UNKNOWNBUILDCONFIG = 'unknown_build_config'; |
|
51 |
my $CATEGORY_RAPTORERROR_NOBUILDCONFIGSGIVEN = 'no_build_configs_given'; |
|
184
978ef35b4e5f
Add more categories for unreciped and raptor error failures
Dario Sestito <darios@symbian.org>
parents:
180
diff
changeset
|
52 |
my $CATEGORY_RAPTORERROR_COULDNOTEXPORT = 'missing_source_file'; |
978ef35b4e5f
Add more categories for unreciped and raptor error failures
Dario Sestito <darios@symbian.org>
parents:
180
diff
changeset
|
53 |
my $CATEGORY_RAPTORERROR_MISSINGBLDINFFILE = 'missing_bld_inf_file'; |
176 | 54 |
|
55 |
sub process |
|
56 |
{ |
|
185
b76adfbc6648
Don't dump failures which aren't reported
Dario Sestito <darios@symbian.org>
parents:
184
diff
changeset
|
57 |
my ($text, $logfile, $component, $mmp, $phase, $recipe, $file) = @_; |
b76adfbc6648
Don't dump failures which aren't reported
Dario Sestito <darios@symbian.org>
parents:
184
diff
changeset
|
58 |
|
b76adfbc6648
Don't dump failures which aren't reported
Dario Sestito <darios@symbian.org>
parents:
184
diff
changeset
|
59 |
my $dumped = 1; |
176 | 60 |
|
61 |
my $category = $CATEGORY_RAPTORERROR; |
|
62 |
my $severity = ''; |
|
63 |
my $subcategory = ''; |
|
64 |
||
65 |
if ($text =~ m,Cannot process schema version .* of file,) |
|
66 |
{ |
|
67 |
$severity = $RaptorCommon::SEVERITY_CRITICAL; |
|
68 |
$subcategory = $CATEGORY_RAPTORERROR_CANNOTPROCESSSCHEMAVERSION; |
|
185
b76adfbc6648
Don't dump failures which aren't reported
Dario Sestito <darios@symbian.org>
parents:
184
diff
changeset
|
69 |
RaptorCommon::dump_fault($category, $subcategory, $severity, $logfile, $component, $mmp, $phase, $recipe, $file); |
176 | 70 |
} |
71 |
elsif ($text =~ m,No bld\.inf found at,) |
|
72 |
{ |
|
73 |
$severity = $RaptorCommon::SEVERITY_MAJOR; |
|
74 |
$subcategory = $CATEGORY_RAPTORERROR_NOBLDINFFOUND; |
|
185
b76adfbc6648
Don't dump failures which aren't reported
Dario Sestito <darios@symbian.org>
parents:
184
diff
changeset
|
75 |
RaptorCommon::dump_fault($category, $subcategory, $severity, $logfile, $component, $mmp, $phase, $recipe, $file); |
176 | 76 |
} |
77 |
elsif ($text =~ m,Can't find mmp file,) |
|
78 |
{ |
|
180
314156ec7d7c
Can't find mmp file should be severity Major
Dario Sestito <darios@symbian.org>
parents:
176
diff
changeset
|
79 |
$severity = $RaptorCommon::SEVERITY_MAJOR; |
176 | 80 |
$subcategory = $CATEGORY_RAPTORERROR_CANTFINDMMPFILE; |
185
b76adfbc6648
Don't dump failures which aren't reported
Dario Sestito <darios@symbian.org>
parents:
184
diff
changeset
|
81 |
RaptorCommon::dump_fault($category, $subcategory, $severity, $logfile, $component, $mmp, $phase, $recipe, $file); |
176 | 82 |
} |
83 |
elsif ($text =~ m,The make-engine exited with errors,) |
|
84 |
{ |
|
85 |
$severity = $RaptorCommon::SEVERITY_CRITICAL; |
|
86 |
$subcategory = $CATEGORY_RAPTORERROR_MAKEEXITEDWITHERRORS; |
|
185
b76adfbc6648
Don't dump failures which aren't reported
Dario Sestito <darios@symbian.org>
parents:
184
diff
changeset
|
87 |
RaptorCommon::dump_fault($category, $subcategory, $severity, $logfile, $component, $mmp, $phase, $recipe, $file); |
176 | 88 |
} |
89 |
elsif ($text =~ m,tool .* from config .* did not return version .* as required,) |
|
90 |
{ |
|
91 |
$severity = $RaptorCommon::SEVERITY_CRITICAL; |
|
92 |
$subcategory = $CATEGORY_RAPTORERROR_TOOLDIDNOTRETURNVERSION; |
|
185
b76adfbc6648
Don't dump failures which aren't reported
Dario Sestito <darios@symbian.org>
parents:
184
diff
changeset
|
93 |
RaptorCommon::dump_fault($category, $subcategory, $severity, $logfile, $component, $mmp, $phase, $recipe, $file); |
176 | 94 |
} |
95 |
elsif ($text =~ m,Unknown build configuration '.*',) |
|
96 |
{ |
|
97 |
$severity = $RaptorCommon::SEVERITY_CRITICAL; |
|
98 |
$subcategory = $CATEGORY_RAPTORERROR_UNKNOWNBUILDCONFIG; |
|
185
b76adfbc6648
Don't dump failures which aren't reported
Dario Sestito <darios@symbian.org>
parents:
184
diff
changeset
|
99 |
RaptorCommon::dump_fault($category, $subcategory, $severity, $logfile, $component, $mmp, $phase, $recipe, $file); |
176 | 100 |
} |
101 |
elsif ($text =~ m,No build configurations given,) |
|
102 |
{ |
|
103 |
$severity = $RaptorCommon::SEVERITY_CRITICAL; |
|
104 |
$subcategory = $CATEGORY_RAPTORERROR_NOBUILDCONFIGSGIVEN; |
|
185
b76adfbc6648
Don't dump failures which aren't reported
Dario Sestito <darios@symbian.org>
parents:
184
diff
changeset
|
105 |
RaptorCommon::dump_fault($category, $subcategory, $severity, $logfile, $component, $mmp, $phase, $recipe, $file); |
176 | 106 |
} |
184
978ef35b4e5f
Add more categories for unreciped and raptor error failures
Dario Sestito <darios@symbian.org>
parents:
180
diff
changeset
|
107 |
elsif ($text =~ m,Could not export .* to .* : \[Errno 2\] No such file or directory: .*,) |
978ef35b4e5f
Add more categories for unreciped and raptor error failures
Dario Sestito <darios@symbian.org>
parents:
180
diff
changeset
|
108 |
{ |
978ef35b4e5f
Add more categories for unreciped and raptor error failures
Dario Sestito <darios@symbian.org>
parents:
180
diff
changeset
|
109 |
$severity = $RaptorCommon::SEVERITY_MAJOR; |
978ef35b4e5f
Add more categories for unreciped and raptor error failures
Dario Sestito <darios@symbian.org>
parents:
180
diff
changeset
|
110 |
$subcategory = $CATEGORY_RAPTORERROR_COULDNOTEXPORT; |
185
b76adfbc6648
Don't dump failures which aren't reported
Dario Sestito <darios@symbian.org>
parents:
184
diff
changeset
|
111 |
RaptorCommon::dump_fault($category, $subcategory, $severity, $logfile, $component, $mmp, $phase, $recipe, $file); |
184
978ef35b4e5f
Add more categories for unreciped and raptor error failures
Dario Sestito <darios@symbian.org>
parents:
180
diff
changeset
|
112 |
} |
978ef35b4e5f
Add more categories for unreciped and raptor error failures
Dario Sestito <darios@symbian.org>
parents:
180
diff
changeset
|
113 |
elsif ($text =~ m,win32/mingw/bin/cpp\.exe: .*bld\.inf:.*bld\.inf: No such file or directory,) |
978ef35b4e5f
Add more categories for unreciped and raptor error failures
Dario Sestito <darios@symbian.org>
parents:
180
diff
changeset
|
114 |
{ |
978ef35b4e5f
Add more categories for unreciped and raptor error failures
Dario Sestito <darios@symbian.org>
parents:
180
diff
changeset
|
115 |
$severity = $RaptorCommon::SEVERITY_MAJOR; |
978ef35b4e5f
Add more categories for unreciped and raptor error failures
Dario Sestito <darios@symbian.org>
parents:
180
diff
changeset
|
116 |
$subcategory = $CATEGORY_RAPTORERROR_MISSINGBLDINFFILE; |
185
b76adfbc6648
Don't dump failures which aren't reported
Dario Sestito <darios@symbian.org>
parents:
184
diff
changeset
|
117 |
RaptorCommon::dump_fault($category, $subcategory, $severity, $logfile, $component, $mmp, $phase, $recipe, $file); |
184
978ef35b4e5f
Add more categories for unreciped and raptor error failures
Dario Sestito <darios@symbian.org>
parents:
180
diff
changeset
|
118 |
} |
978ef35b4e5f
Add more categories for unreciped and raptor error failures
Dario Sestito <darios@symbian.org>
parents:
180
diff
changeset
|
119 |
elsif ($text =~ m,^Preprocessor exception: ''Errors in .*bld\.inf'' : in command,) |
978ef35b4e5f
Add more categories for unreciped and raptor error failures
Dario Sestito <darios@symbian.org>
parents:
180
diff
changeset
|
120 |
{ |
978ef35b4e5f
Add more categories for unreciped and raptor error failures
Dario Sestito <darios@symbian.org>
parents:
180
diff
changeset
|
121 |
# don't dump |
185
b76adfbc6648
Don't dump failures which aren't reported
Dario Sestito <darios@symbian.org>
parents:
184
diff
changeset
|
122 |
$dumped = 0; |
184
978ef35b4e5f
Add more categories for unreciped and raptor error failures
Dario Sestito <darios@symbian.org>
parents:
180
diff
changeset
|
123 |
} |
978ef35b4e5f
Add more categories for unreciped and raptor error failures
Dario Sestito <darios@symbian.org>
parents:
180
diff
changeset
|
124 |
elsif ($text =~ m,Source of export does not exist: .*,) |
978ef35b4e5f
Add more categories for unreciped and raptor error failures
Dario Sestito <darios@symbian.org>
parents:
180
diff
changeset
|
125 |
{ |
978ef35b4e5f
Add more categories for unreciped and raptor error failures
Dario Sestito <darios@symbian.org>
parents:
180
diff
changeset
|
126 |
# don't dump |
185
b76adfbc6648
Don't dump failures which aren't reported
Dario Sestito <darios@symbian.org>
parents:
184
diff
changeset
|
127 |
$dumped = 0; |
184
978ef35b4e5f
Add more categories for unreciped and raptor error failures
Dario Sestito <darios@symbian.org>
parents:
180
diff
changeset
|
128 |
} |
176 | 129 |
else # log everything by default |
130 |
{ |
|
185
b76adfbc6648
Don't dump failures which aren't reported
Dario Sestito <darios@symbian.org>
parents:
184
diff
changeset
|
131 |
RaptorCommon::dump_fault($category, $subcategory, $severity, $logfile, $component, $mmp, $phase, $recipe, $file); |
176 | 132 |
} |
185
b76adfbc6648
Don't dump failures which aren't reported
Dario Sestito <darios@symbian.org>
parents:
184
diff
changeset
|
133 |
|
b76adfbc6648
Don't dump failures which aren't reported
Dario Sestito <darios@symbian.org>
parents:
184
diff
changeset
|
134 |
return $dumped; |
176 | 135 |
} |
136 |
||
137 |
sub on_start_buildlog |
|
138 |
{ |
|
139 |
RaptorCommon::init(); |
|
140 |
} |
|
141 |
||
142 |
sub on_start_buildlog_error |
|
143 |
{ |
|
209
ba90e30c0f3c
Use the bldinf attribute to assign Raptor errors and warnings to the related package
Dario Sestito <darios@symbian.org>
parents:
185
diff
changeset
|
144 |
my ($el) = @_; |
ba90e30c0f3c
Use the bldinf attribute to assign Raptor errors and warnings to the related package
Dario Sestito <darios@symbian.org>
parents:
185
diff
changeset
|
145 |
|
ba90e30c0f3c
Use the bldinf attribute to assign Raptor errors and warnings to the related package
Dario Sestito <darios@symbian.org>
parents:
185
diff
changeset
|
146 |
#print "on_start_buildlog_error\n"; |
ba90e30c0f3c
Use the bldinf attribute to assign Raptor errors and warnings to the related package
Dario Sestito <darios@symbian.org>
parents:
185
diff
changeset
|
147 |
|
ba90e30c0f3c
Use the bldinf attribute to assign Raptor errors and warnings to the related package
Dario Sestito <darios@symbian.org>
parents:
185
diff
changeset
|
148 |
$raptor_error_info = {}; |
ba90e30c0f3c
Use the bldinf attribute to assign Raptor errors and warnings to the related package
Dario Sestito <darios@symbian.org>
parents:
185
diff
changeset
|
149 |
|
ba90e30c0f3c
Use the bldinf attribute to assign Raptor errors and warnings to the related package
Dario Sestito <darios@symbian.org>
parents:
185
diff
changeset
|
150 |
my $attributes = $el->{Attributes}; |
ba90e30c0f3c
Use the bldinf attribute to assign Raptor errors and warnings to the related package
Dario Sestito <darios@symbian.org>
parents:
185
diff
changeset
|
151 |
for (keys %{$attributes}) |
ba90e30c0f3c
Use the bldinf attribute to assign Raptor errors and warnings to the related package
Dario Sestito <darios@symbian.org>
parents:
185
diff
changeset
|
152 |
{ |
ba90e30c0f3c
Use the bldinf attribute to assign Raptor errors and warnings to the related package
Dario Sestito <darios@symbian.org>
parents:
185
diff
changeset
|
153 |
$raptor_error_info->{$attributes->{$_}->{'LocalName'}} = $attributes->{$_}->{'Value'}; |
ba90e30c0f3c
Use the bldinf attribute to assign Raptor errors and warnings to the related package
Dario Sestito <darios@symbian.org>
parents:
185
diff
changeset
|
154 |
#print "$_ -> $attributes->{$_}->{'Value'}\n"; |
ba90e30c0f3c
Use the bldinf attribute to assign Raptor errors and warnings to the related package
Dario Sestito <darios@symbian.org>
parents:
185
diff
changeset
|
155 |
} |
176 | 156 |
} |
157 |
||
158 |
sub on_chars_buildlog_error |
|
159 |
{ |
|
160 |
my ($ch) = @_; |
|
161 |
||
162 |
#print "on_chars_buildlog_error\n"; |
|
163 |
||
164 |
$characters .= $ch->{Data}; |
|
165 |
||
166 |
#print "characters is now -->$characters<--\n"; |
|
167 |
} |
|
168 |
||
169 |
sub on_end_buildlog_error |
|
170 |
{ |
|
171 |
#print "on_end_buildlog_error\n"; |
|
172 |
||
209
ba90e30c0f3c
Use the bldinf attribute to assign Raptor errors and warnings to the related package
Dario Sestito <darios@symbian.org>
parents:
185
diff
changeset
|
173 |
my $package = ''; |
ba90e30c0f3c
Use the bldinf attribute to assign Raptor errors and warnings to the related package
Dario Sestito <darios@symbian.org>
parents:
185
diff
changeset
|
174 |
if ($raptor_error_info->{bldinf}) |
ba90e30c0f3c
Use the bldinf attribute to assign Raptor errors and warnings to the related package
Dario Sestito <darios@symbian.org>
parents:
185
diff
changeset
|
175 |
{ |
ba90e30c0f3c
Use the bldinf attribute to assign Raptor errors and warnings to the related package
Dario Sestito <darios@symbian.org>
parents:
185
diff
changeset
|
176 |
$::allbldinfs->{$raptor_error_info->{bldinf}} = 1; |
ba90e30c0f3c
Use the bldinf attribute to assign Raptor errors and warnings to the related package
Dario Sestito <darios@symbian.org>
parents:
185
diff
changeset
|
177 |
|
ba90e30c0f3c
Use the bldinf attribute to assign Raptor errors and warnings to the related package
Dario Sestito <darios@symbian.org>
parents:
185
diff
changeset
|
178 |
# normalize bldinf path |
ba90e30c0f3c
Use the bldinf attribute to assign Raptor errors and warnings to the related package
Dario Sestito <darios@symbian.org>
parents:
185
diff
changeset
|
179 |
$raptor_error_info->{bldinf} = lc($raptor_error_info->{bldinf}); |
ba90e30c0f3c
Use the bldinf attribute to assign Raptor errors and warnings to the related package
Dario Sestito <darios@symbian.org>
parents:
185
diff
changeset
|
180 |
$raptor_error_info->{bldinf} =~ s,^[A-Za-z]:,,; |
ba90e30c0f3c
Use the bldinf attribute to assign Raptor errors and warnings to the related package
Dario Sestito <darios@symbian.org>
parents:
185
diff
changeset
|
181 |
$raptor_error_info->{bldinf} =~ s,[\\],/,g; |
ba90e30c0f3c
Use the bldinf attribute to assign Raptor errors and warnings to the related package
Dario Sestito <darios@symbian.org>
parents:
185
diff
changeset
|
182 |
|
ba90e30c0f3c
Use the bldinf attribute to assign Raptor errors and warnings to the related package
Dario Sestito <darios@symbian.org>
parents:
185
diff
changeset
|
183 |
if ($raptor_error_info->{bldinf} =~ m,/((os|mw|app|tools|ostools|adaptation)/[^/]*),) |
ba90e30c0f3c
Use the bldinf attribute to assign Raptor errors and warnings to the related package
Dario Sestito <darios@symbian.org>
parents:
185
diff
changeset
|
184 |
{ |
ba90e30c0f3c
Use the bldinf attribute to assign Raptor errors and warnings to the related package
Dario Sestito <darios@symbian.org>
parents:
185
diff
changeset
|
185 |
$package = $1; |
ba90e30c0f3c
Use the bldinf attribute to assign Raptor errors and warnings to the related package
Dario Sestito <darios@symbian.org>
parents:
185
diff
changeset
|
186 |
$package =~ s,/,_,; |
ba90e30c0f3c
Use the bldinf attribute to assign Raptor errors and warnings to the related package
Dario Sestito <darios@symbian.org>
parents:
185
diff
changeset
|
187 |
} |
ba90e30c0f3c
Use the bldinf attribute to assign Raptor errors and warnings to the related package
Dario Sestito <darios@symbian.org>
parents:
185
diff
changeset
|
188 |
else |
ba90e30c0f3c
Use the bldinf attribute to assign Raptor errors and warnings to the related package
Dario Sestito <darios@symbian.org>
parents:
185
diff
changeset
|
189 |
{ |
ba90e30c0f3c
Use the bldinf attribute to assign Raptor errors and warnings to the related package
Dario Sestito <darios@symbian.org>
parents:
185
diff
changeset
|
190 |
print "WARNING: can't understand bldinf attribute of raptor error: $raptor_error_info->{bldinf}. Won't associate to package.\n"; |
ba90e30c0f3c
Use the bldinf attribute to assign Raptor errors and warnings to the related package
Dario Sestito <darios@symbian.org>
parents:
185
diff
changeset
|
191 |
} |
ba90e30c0f3c
Use the bldinf attribute to assign Raptor errors and warnings to the related package
Dario Sestito <darios@symbian.org>
parents:
185
diff
changeset
|
192 |
} |
ba90e30c0f3c
Use the bldinf attribute to assign Raptor errors and warnings to the related package
Dario Sestito <darios@symbian.org>
parents:
185
diff
changeset
|
193 |
|
176 | 194 |
$characters =~ s,^[\r\n]*,,; |
195 |
$characters =~ s,[\r\n]*$,,; |
|
196 |
||
197 |
if ($characters =~ m,[^\s^\r^\n],) |
|
209
ba90e30c0f3c
Use the bldinf attribute to assign Raptor errors and warnings to the related package
Dario Sestito <darios@symbian.org>
parents:
185
diff
changeset
|
198 |
{ |
ba90e30c0f3c
Use the bldinf attribute to assign Raptor errors and warnings to the related package
Dario Sestito <darios@symbian.org>
parents:
185
diff
changeset
|
199 |
my $bldinf_field = ''; |
ba90e30c0f3c
Use the bldinf attribute to assign Raptor errors and warnings to the related package
Dario Sestito <darios@symbian.org>
parents:
185
diff
changeset
|
200 |
if ($package) |
ba90e30c0f3c
Use the bldinf attribute to assign Raptor errors and warnings to the related package
Dario Sestito <darios@symbian.org>
parents:
185
diff
changeset
|
201 |
{ |
ba90e30c0f3c
Use the bldinf attribute to assign Raptor errors and warnings to the related package
Dario Sestito <darios@symbian.org>
parents:
185
diff
changeset
|
202 |
$filename = "$::raptorbitsdir/$package.txt"; |
ba90e30c0f3c
Use the bldinf attribute to assign Raptor errors and warnings to the related package
Dario Sestito <darios@symbian.org>
parents:
185
diff
changeset
|
203 |
$bldinf_field = $raptor_error_info->{bldinf}; |
ba90e30c0f3c
Use the bldinf attribute to assign Raptor errors and warnings to the related package
Dario Sestito <darios@symbian.org>
parents:
185
diff
changeset
|
204 |
} |
ba90e30c0f3c
Use the bldinf attribute to assign Raptor errors and warnings to the related package
Dario Sestito <darios@symbian.org>
parents:
185
diff
changeset
|
205 |
else |
ba90e30c0f3c
Use the bldinf attribute to assign Raptor errors and warnings to the related package
Dario Sestito <darios@symbian.org>
parents:
185
diff
changeset
|
206 |
{ |
ba90e30c0f3c
Use the bldinf attribute to assign Raptor errors and warnings to the related package
Dario Sestito <darios@symbian.org>
parents:
185
diff
changeset
|
207 |
$filename = "$::raptorbitsdir/raptor_error.txt"; |
ba90e30c0f3c
Use the bldinf attribute to assign Raptor errors and warnings to the related package
Dario Sestito <darios@symbian.org>
parents:
185
diff
changeset
|
208 |
} |
ba90e30c0f3c
Use the bldinf attribute to assign Raptor errors and warnings to the related package
Dario Sestito <darios@symbian.org>
parents:
185
diff
changeset
|
209 |
|
ba90e30c0f3c
Use the bldinf attribute to assign Raptor errors and warnings to the related package
Dario Sestito <darios@symbian.org>
parents:
185
diff
changeset
|
210 |
if (!-f$filename) |
ba90e30c0f3c
Use the bldinf attribute to assign Raptor errors and warnings to the related package
Dario Sestito <darios@symbian.org>
parents:
185
diff
changeset
|
211 |
{ |
ba90e30c0f3c
Use the bldinf attribute to assign Raptor errors and warnings to the related package
Dario Sestito <darios@symbian.org>
parents:
185
diff
changeset
|
212 |
print "Writing file $filename\n"; |
ba90e30c0f3c
Use the bldinf attribute to assign Raptor errors and warnings to the related package
Dario Sestito <darios@symbian.org>
parents:
185
diff
changeset
|
213 |
open(FILE, ">$filename"); |
ba90e30c0f3c
Use the bldinf attribute to assign Raptor errors and warnings to the related package
Dario Sestito <darios@symbian.org>
parents:
185
diff
changeset
|
214 |
close(FILE); |
ba90e30c0f3c
Use the bldinf attribute to assign Raptor errors and warnings to the related package
Dario Sestito <darios@symbian.org>
parents:
185
diff
changeset
|
215 |
} |
ba90e30c0f3c
Use the bldinf attribute to assign Raptor errors and warnings to the related package
Dario Sestito <darios@symbian.org>
parents:
185
diff
changeset
|
216 |
|
ba90e30c0f3c
Use the bldinf attribute to assign Raptor errors and warnings to the related package
Dario Sestito <darios@symbian.org>
parents:
185
diff
changeset
|
217 |
my $dumped = process($characters, $::current_log_file, $bldinf_field, '', '', '', "$package.txt"); |
185
b76adfbc6648
Don't dump failures which aren't reported
Dario Sestito <darios@symbian.org>
parents:
184
diff
changeset
|
218 |
|
b76adfbc6648
Don't dump failures which aren't reported
Dario Sestito <darios@symbian.org>
parents:
184
diff
changeset
|
219 |
if ($dumped) |
176 | 220 |
{ |
185
b76adfbc6648
Don't dump failures which aren't reported
Dario Sestito <darios@symbian.org>
parents:
184
diff
changeset
|
221 |
open(FILE, ">>$filename"); |
b76adfbc6648
Don't dump failures which aren't reported
Dario Sestito <darios@symbian.org>
parents:
184
diff
changeset
|
222 |
print FILE "---failure_item_$::failure_item_number\---\n"; |
b76adfbc6648
Don't dump failures which aren't reported
Dario Sestito <darios@symbian.org>
parents:
184
diff
changeset
|
223 |
print FILE "$characters\n\n"; |
176 | 224 |
close(FILE); |
225 |
} |
|
226 |
} |
|
227 |
||
228 |
$characters = ''; |
|
229 |
} |
|
230 |
||
231 |
||
232 |
1; |