Fix wrong computation of build drive directory
authorDario Sestito <darios@symbian.org>
Wed, 05 Aug 2009 11:30:28 +0100
changeset 36 c2062b9445d0
parent 35 4d500511bf5a
child 37 2e0ebeeeaf52
Fix wrong computation of build drive directory
build_package.pl
--- a/build_package.pl	Wed Aug 05 11:16:03 2009 +0100
+++ b/build_package.pl	Wed Aug 05 11:30:28 2009 +0100
@@ -244,10 +244,12 @@
 		print "rmdir /S $sWORKING_DRIVE\\$sJOB_BASE_DIR\\$sJobLabel\n";
 		system("rmdir /S /Q $sWORKING_DRIVE\\$sJOB_BASE_DIR\\$sJobLabel");
 	}
-	if (-d "$sWORKING_DRIVE\\fbf_job\\$sJobNumberKey.$nJobNumber") # build drive
+	my $sBuildLabel = $sJobNumberKey;
+	$sBuildLabel =~ s/\.T$//;
+	if (-d "$sWORKING_DRIVE\\fbf_job\\$sBuildLabel.$nJobNumber") # build drive
 	{
-		print "rmdir /S $sWORKING_DRIVE\\fbf_job\\$sJobNumberKey.$nJobNumber\n";
-		system("rmdir /S /Q $sWORKING_DRIVE\\fbf_job\\$sJobNumberKey.$nJobNumber");
+		print "rmdir /S $sWORKING_DRIVE\\fbf_job\\$sBuildLabel.$nJobNumber\n";
+		system("rmdir /S /Q $sWORKING_DRIVE\\fbf_job\\$sBuildLabel.$nJobNumber");
 	}
 }