Fix: wrong location for envinfo.txt in zip file. Add more locations to look for envinfo.txt
authorDario Sestito <darios@symbian.org>
Mon, 07 Jun 2010 12:39:24 +0100
changeset 276 ad9846216af2
parent 275 f914b0494f03
child 277 e7df00ade863
Fix: wrong location for envinfo.txt in zip file. Add more locations to look for envinfo.txt
envinfo/envinfo.pl
--- a/envinfo/envinfo.pl	Fri Jun 04 16:09:17 2010 +0100
+++ b/envinfo/envinfo.pl	Mon Jun 07 12:39:24 2010 +0100
@@ -51,6 +51,8 @@
 	$target = "$baseline\\envinfo.txt" if (!$target && -f "$baseline\\envinfo.txt");
 	$target = "$baseline\\build_info\\logs\\envinfo.txt" if (!$target && -f "$baseline\\build_info\\logs\\envinfo.txt");
 	$target = "$baseline\\build_BOM.zip" if (!$target && -f "$baseline\\build_BOM.zip");
+	$target = "$baseline\\output\\logs\\envinfo.txt" if (!$target && -f "$baseline\\output\\logs\\envinfo.txt");
+	$target = "$baseline\\output\\zips\\release\\build_BOM.zip" if (!$target && -f "$baseline\\output\\zips\\release\\build_BOM.zip");
 	if (!$target)
 	{
 		warn "WARNING: Can't find envinfo.txt from location '$baseline'\n";
@@ -58,7 +60,7 @@
 	elsif ($target =~ /\.zip$/)
 	{
 		print "Extracting envinfo.txt from $target\n";
-		my $cmd = "7z e -y $target build_info\logs\envinfo.txt";
+		my $cmd = "7z e -y $target build_info\\logs\\BOM\\envinfo.txt";
 		my $output = `$cmd 2>&1`;
 		if ($output =~ /is not recognized as an internal or external command/)
 		{