# HG changeset patch # User Dario Sestito # Date 1271075198 -3600 # Node ID 907120563fcec76a14f6c9c6233e01e8a39b96b5 # Parent 74890d706f0c396f759ec1a73471a0c62e07d08b Add new variant_file_does_not_exist category for Raptor errors diff -r 74890d706f0c -r 907120563fce 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;