Add new variant_file_does_not_exist category for Raptor errors
authorDario Sestito <darios@symbian.org>
Mon, 12 Apr 2010 13:26:38 +0100
changeset 216 907120563fce
parent 215 74890d706f0c
child 217 8a3d46cfe8b5
Add new variant_file_does_not_exist category for Raptor errors
uh_parser/RaptorError.pm
--- a/uh_parser/RaptorError.pm	Mon Apr 12 11:55:43 2010 +0100
+++ b/uh_parser/RaptorError.pm	Mon Apr 12 13:26:38 2010 +0100
@@ -52,6 +52,7 @@
 my $CATEGORY_RAPTORERROR_COULDNOTEXPORT = 'missing_source_file';
 my $CATEGORY_RAPTORERROR_CPPEXENOSUCHFILEORDIRECTORY = 'cpp_exe_no_such_file_or_directory';
 my $CATEGORY_RAPTORERROR_FAILEDTOPARSEXMLFILE = 'failed_to_parse_xml_file';
+my $CATEGORY_RAPTORERROR_VARIANTFILEDOESNOTEXIST = 'variant_file_does_not_exist';
 
 sub process
 {
@@ -111,6 +112,12 @@
 		$subcategory = $CATEGORY_RAPTORERROR_FAILEDTOPARSEXMLFILE;
 		RaptorCommon::dump_fault($category, $subcategory, $severity, $logfile, $component, $mmp, $phase, $recipe, $file);
 	}
+	elsif ($text =~ m,Variant file .* does not exist,)
+	{
+		$severity = $RaptorCommon::SEVERITY_CRITICAL;
+		$subcategory = $CATEGORY_RAPTORERROR_VARIANTFILEDOESNOTEXIST;
+		RaptorCommon::dump_fault($category, $subcategory, $severity, $logfile, $component, $mmp, $phase, $recipe, $file);
+	}
 	elsif ($text =~ m,Could not export .* to .* : \[Errno 2\] No such file or directory: .*,)
 	{
 		$severity = $RaptorCommon::SEVERITY_MAJOR;