uh_parser/uh.pl
changeset 223 604012c39141
parent 216 2c2dbe93b84b
child 225 fb5bc19e742d
equal deleted inserted replaced
222:7d674ef4b3c2 223:604012c39141
   266 			my $failuresbyseverity = 0;
   266 			my $failuresbyseverity = 0;
   267 			$failuresbyseverity = $recipe_failures_num_by_severity->{$package}->{$_} if (defined $recipe_failures_num_by_severity->{$package}->{$_});
   267 			$failuresbyseverity = $recipe_failures_num_by_severity->{$package}->{$_} if (defined $recipe_failures_num_by_severity->{$package}->{$_});
   268 			$packageline .= "<td>$failuresbyseverity</td>";
   268 			$packageline .= "<td>$failuresbyseverity</td>";
   269 		}
   269 		}
   270 		$packageline .= "<td>".$missing_by_package->{$package}."</td>" if ($missing);
   270 		$packageline .= "<td>".$missing_by_package->{$package}."</td>" if ($missing);
   271 		$packageline .= "</tr>";
   271 		$packageline .= "</tr>\n";
   272 		print AGGREGATED "$packageline\n";
   272 		print AGGREGATED "$packageline\n";
   273 	}
   273 	}
   274 	else
   274 	else
   275 	{
   275 	{
   276 		my $packageline = "<tr><td>$package</td>";
   276 		my $packageline = "<tr><td>$package</td>";
   277 		for (@severities) { $packageline .= "<td>0</td>"; }
   277 		for (@severities) { $packageline .= "<td>0</td>"; }
   278 		$packageline .= "</tr>";
   278 		$packageline .= "<td>0</td>" if ($missing);
       
   279 		$packageline .= "</tr>\n";
   279 		print AGGREGATED "$packageline\n";
   280 		print AGGREGATED "$packageline\n";
   280 	}
   281 	}
   281 }
   282 }
   282 print AGGREGATED "</table>\n";
   283 print AGGREGATED "</table>\n";
   283 close(AGGREGATED);
   284 close(AGGREGATED);
   424 sub translate_detail_files_to_html
   425 sub translate_detail_files_to_html
   425 {
   426 {
   426 	opendir(DIR, $raptorbitsdir);
   427 	opendir(DIR, $raptorbitsdir);
   427 	my @failurefiles = readdir(DIR);
   428 	my @failurefiles = readdir(DIR);
   428 	closedir(DIR);	
   429 	closedir(DIR);	
   429 	@failurefiles = grep(/\.txt$/, @failurefiles);
   430 	@failurefiles = grep($_ =~ /\.txt$/ && $_ !~ /_missing\.txt$/, @failurefiles);
   430 	
   431 	
   431 	for my $file (@failurefiles)
   432 	for my $file (@failurefiles)
   432 	{
   433 	{
   433 		$file =~ /(.*)\.txt$/;
   434 		$file =~ /(.*)\.txt$/;
   434 		my $filenamebase = $1;
   435 		my $filenamebase = $1;