# HG changeset patch # User William Roberts # Date 1244560362 -3600 # Node ID 430173497dd4e7a591bd0c7f5215dfc0f6b77bd4 # Parent 588200b6a71bf94b620e6259ad11ce9a06ed6b4d Reorder the PkgComponentAnalysisSummary.csv columns, and change "KO" to "Bad". diff -r 588200b6a71b -r 430173497dd4 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);