Reorder the PkgComponentAnalysisSummary.csv columns, and change "KO" to "Bad".
authorWilliam Roberts <williamr@symbian.org>
Tue, 09 Jun 2009 16:12:42 +0100
changeset 145 430173497dd4
parent 144 588200b6a71b
child 148 536da72d8f07
Reorder the PkgComponentAnalysisSummary.csv columns, and change "KO" to "Bad".
common/tools/analysis/analyse_components.pl
--- a/common/tools/analysis/analyse_components.pl	Tue Jun 09 15:03:57 2009 +0100
+++ b/common/tools/analysis/analyse_components.pl	Tue Jun 09 16:12:42 2009 +0100
@@ -149,14 +149,14 @@
 	$value = $2;
 	$status = $3;
 	chomp($status);
-	if ($status ne "OK") {$status = "KO"};
+	if ($status ne "OK") {$status = "Bad"};
     if ($seen{$value}) 
 	{
 		$seen{$value} =~ /^[^,]+,([^,]+)/;
 		my $currentstatus = $1;
-		if ($currentstatus eq "KO")
+		if ($currentstatus eq "Bad")
 		{
-			$status = "KO";
+			$status = "Bad";
 		}
 	}
 	$seen{$value} = "$remains,$status\n";
@@ -166,18 +166,19 @@
 # Prepend system model info (block name, component name)
 foreach my $line (@uniq)
 {
+  chomp $line;
 	if ($line =~ /^[^,]+,[^,]+,([^,]+),/)
 	{
 		my $bldfile = $1;
 		my $sysmodelinfo = &getSysModelInfo($bldfile);
-		$line = "$sysmodelinfo, $line";
+		$line = "$line, $sysmodelinfo\n";
 	}
 }
 
 
 # Write the summary log
 open(OUTPUT,">PkgComponentAnalysisSummary.csv") or die "Error: Couldn't open PkgComponentAnalysisSummary.csv for writing\n";
-print OUTPUT "Package Name, Component Name, Package Path (from Sources.csv), License, BldFile (from whatlog), Status\n"; 
+print OUTPUT "Source Path (from Sources.csv), License, BldFile (from whatlog), Package Name, Component Name\n"; 
 print OUTPUT @uniq;
 close(OUTPUT);
 close(WHATLOG);