Update of /cvsroot/fink/scripts/buildfink
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv18571

Modified Files:
        FinkLib.pm 
Log Message:
No, really, we aren't interactive

Index: FinkLib.pm
===================================================================
RCS file: /cvsroot/fink/scripts/buildfink/FinkLib.pm,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -d -r1.11 -r1.12
--- FinkLib.pm  9 Mar 2006 20:36:53 -0000       1.11
+++ FinkLib.pm  9 Mar 2006 21:07:25 -0000       1.12
@@ -48,8 +48,14 @@
 # Make sure all essential packages are installed
 sub installEssentials {
        my @essentials = Fink::Package->list_essential_packages();
-       system("fink", "-y", "rebuild", @essentials);
-       system("fink", "-y", "reinstall", @essentials);
+       my $pid = fork();
+       if($pid) {
+               wait();
+       } else {
+               close(STDIN);
+               system("fink", "-y", "rebuild", @essentials);
+               system("fink", "-y", "reinstall", @essentials);
+       }
 }
 
 # Purge packages we may have previously built



-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Fink-commits mailing list
Fink-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fink-commits

Reply via email to