Update of /cvsroot/fink/fink
In directory sc8-pr-cvs5.sourceforge.net:/tmp/cvs-serv16674

Modified Files:
        bootstrap 
Log Message:
whups, use the smarter one

Index: bootstrap
===================================================================
RCS file: /cvsroot/fink/fink/bootstrap,v
retrieving revision 1.10
retrieving revision 1.11
diff -u -d -r1.10 -r1.11
--- bootstrap   22 Jan 2007 02:35:09 -0000      1.10
+++ bootstrap   22 Jan 2007 02:37:42 -0000      1.11
@@ -126,7 +126,9 @@
                $cmd .= " '".join("' '", @ARGV)."'";
        }
        if ($answer eq "sudo") {
-               $cmd = "/usr/bin/sudo /usr/bin/env PERL5LIB='$ENV{'PERL5LIB'}' 
$cmd";
+               $env = '';
+               $env = "/usr/bin/env PERL5LIB='$ENV{'PERL5LIB'}'" if (exists 
$ENV{'PERL5LIB'} and defined $ENV{'PERL5LIB'});
+               $cmd = "/usr/bin/sudo $env $cmd";
        } elsif ($answer eq "su") {
                $cmd = "$cmd | /usr/bin/su";
        } else {


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Fink-commits mailing list
Fink-commits@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/fink-commits

Reply via email to