Applied the /accepteula option to all calls to junction so that it will never stall a build waiting for the user to accept the EULA,
authorMike Kinghan <mikek@symbian.org>
Mon, 15 Jun 2009 13:49:55 +0100 (2009-06-15)
changeset 152 9b92bfde63bf
parent 151 78fd19fc42a0
child 153 e60dd96530ff
Applied the /accepteula option to all calls to junction so that it will never stall a build waiting for the user to accept the EULA,
common/tools/ats/make_junction.pl
--- a/common/tools/ats/make_junction.pl	Mon Jun 15 08:09:21 2009 +0100
+++ b/common/tools/ats/make_junction.pl	Mon Jun 15 13:49:55 2009 +0100
@@ -46,7 +46,7 @@
 
 usage_error(), unless (defined($link) && defined($target));
 
-my $junction_help = `junction /?`;
+my $junction_help = `junction /accepteula /?`;
 die("Need command \"junction\". Not found\n"), if ($junction_help =~ /is not recognised/);
 die("Directory \"$target\" not found\n"), unless -d "$target";
 
@@ -82,7 +82,7 @@
         $force = $choice eq 'y';
     }    
     if ($force) {
-        system("junction -d \"$link\" > nul");
+        system("junction /accepteula -d \"$link\" > nul");
         if ($?) {
             die("Cannot delete \"$link\": $!\n");
         }
@@ -92,7 +92,7 @@
     }
 } 
 
-system("junction \"$link\" \"$target\" > nul");
+system("junction /accepteula \"$link\" \"$target\" > nul");
 if ($?) {
     die("Cannot cteate junction \"$link\" -> \"$target\": $!\n");
 }