Remove the correct job directory after the build, otherwise concurrent builds of the same package if run at the same time will have their jobdir removed and hence fail
authorDario Sestito <darios@symbian.org>
Tue, 09 Mar 2010 12:57:02 +0000
changeset 71 f7ba24a607f8
parent 70 450398a72180
child 72 50ab3bef1c6a
Remove the correct job directory after the build, otherwise concurrent builds of the same package if run at the same time will have their jobdir removed and hence fail
build_package.pl
--- a/build_package.pl	Thu Mar 04 11:18:46 2010 +0000
+++ b/build_package.pl	Tue Mar 09 12:57:02 2010 +0000
@@ -170,7 +170,7 @@
 #}
 mkdir("$sWORKING_DRIVE\\$sJOB_BASE_DIR") if (!-d "$sWORKING_DRIVE\\$sJOB_BASE_DIR");
 my $sJobDir = mkdir_unique("$sWORKING_DRIVE\\$sJOB_BASE_DIR\\$sJobLabel");
-print "Created project dir $sWORKING_DRIVE\\$sJOB_BASE_DIR\\$sJobDir\n";
+print "Created project dir $sJobDir\n";
 
 print("cd $sBOOTSTRAP_DIR\n");
 chdir("$sBOOTSTRAP_DIR");
@@ -277,8 +277,8 @@
 	print "cleaning job directories...\n";
 	if (-d "$sWORKING_DRIVE\\$sJOB_BASE_DIR\\$sJobLabel") # project dir
 	{
-		print "rmdir /S $sWORKING_DRIVE\\$sJOB_BASE_DIR\\$sJobLabel\n";
-		system("rmdir /S /Q $sWORKING_DRIVE\\$sJOB_BASE_DIR\\$sJobLabel");
+		print "rmdir /S /Q $sJobDir\n";
+		system("rmdir /S /Q $sJobDir");
 	}
 	if (-d "$sWORKING_DRIVE\\fbf_job\\$sPackage\_$sPlatform.$nJobNumber") # build drive
 	{