Removed drivce space check for platform builds, as there's already one in the FBF anyway,
authorSimon Howkins <simonh@symbian.org>
Fri, 11 Dec 2009 16:07:54 +0000
changeset 62 2797c7d55e8b
parent 61 cfb15e4d62a4
child 63 be578de158ab
Removed drivce space check for platform builds, as there's already one in the FBF anyway, and platform builds are not generally expected to run concurrently (which was the rationale for the check in the bootstrap.)
build_platform.pl
--- a/build_platform.pl	Fri Nov 20 12:43:59 2009 +0000
+++ b/build_platform.pl	Fri Dec 11 16:07:54 2009 +0000
@@ -90,21 +90,6 @@
 my $sWORKING_DRIVE = find_working_drive();
 print "Will use drive $sWORKING_DRIVE as working drive for this build\n";
 
-if ($bHudson)
-{
-	my $nProcessors = $ENV{'NUMBER_OF_PROCESSORS'};
-	my $diroutput = `dir /-C $sWORKING_DRIVE`;
-	my $nBytesFree = 0;
-	$nBytesFree = $1 if ($diroutput =~ /(\d+) bytes free/);
-	my $nNeededSpace = 10*$nProcessors*1073741824;
-	#print "Needed space is $nNeededSpace\n";
-	if ($nBytesFree < $nNeededSpace)
-	{
-		print "ERROR: Available disk space on working drive ($nBytesFree bytes) is not enough to run a package build with Hudson.\n";
-		exit(1);
-	}
-}
-
 my $sFbfProjectRev = '';
 if ($sFbfProjectRepo =~ m,(.*)#(.*),)
 {