Fix: envinfo in bit database is reversed
authorDario Sestito <darios@symbian.org>
Mon, 12 Jul 2010 12:02:01 +0100
changeset 1163 b60154bd7ef7
parent 1162 1127dea6b78b
child 1164 b978b05bda4f
Fix: envinfo in bit database is reversed
common/tools/envinfo2diamonds.pl
--- a/common/tools/envinfo2diamonds.pl	Mon Jul 12 12:00:07 2010 +0100
+++ b/common/tools/envinfo2diamonds.pl	Mon Jul 12 12:02:01 2010 +0100
@@ -54,7 +54,6 @@
 close(INFILE);
 
 # write diamonds file
-@environment_info = reverse(@environment_info);
 
 my $xml_content = <<_EOX;
 <?xml version=\"1.0\" encoding=\"UTF-8\"?>
@@ -67,7 +66,7 @@
 _EOX
 
 my $tools_lines = '';
-for my $tool_info (@environment_info)
+for my $tool_info (reverse(@environment_info))
 {
 	$tools_lines .= "   <tool><name>$tool_info->{name}</name><version>$tool_info->{version}</version></tool>\n";
 }