Update of /cvsroot/fink/fink In directory fdv4jf1.ch3.sourceforge.com:/tmp/cvs-serv18074
Modified Files: ChangeLog inject.pl Log Message: run inject.pl under sudo Index: inject.pl =================================================================== RCS file: /cvsroot/fink/fink/inject.pl,v retrieving revision 1.31 retrieving revision 1.32 diff -u -d -r1.31 -r1.32 --- inject.pl 1 Apr 2009 04:46:21 -0000 1.31 +++ inject.pl 16 May 2009 04:12:33 -0000 1.32 @@ -30,6 +30,17 @@ use lib "$FindBin::RealBin/perlmod"; use File::Copy; +require Fink::Services; +import Fink::Services qw(&execute); + +### use sudo + +if ($> != 0) { + print "This script must be run under sudo, which requires your password.\n"; + my $cmd = "/usr/bin/sudo $FindBin::RealBin/inject.pl"; + exit &execute($cmd,quiet=>1); +} + ### create FinkVersion.pm from FinkVersion.pm.in (we don't care about the ### @ARCHITECTURE@ and @VERSION@ strings, because this copy of Fink is just ### here for the purpose of running the inject_packages() script, which Index: ChangeLog =================================================================== RCS file: /cvsroot/fink/fink/ChangeLog,v retrieving revision 1.516 retrieving revision 1.517 diff -u -d -r1.516 -r1.517 --- ChangeLog 15 May 2009 19:30:30 -0000 1.516 +++ ChangeLog 16 May 2009 04:12:33 -0000 1.517 @@ -5,6 +5,7 @@ is important for bootstrapping) * bootstrap, Release, MANIFEST: install the initial Release and Packages.gz files during bootstrapping + * inject.pl: run under sudo 2009-05-12 Dave Morrison <d...@finkproject.org> ------------------------------------------------------------------------------ Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensing option that enables unlimited royalty-free distribution of the report engine for externally facing server and web deployment. http://p.sf.net/sfu/businessobjects _______________________________________________ Fink-commits mailing list Fink-commits@lists.sourceforge.net http://news.gmane.org/gmane.os.apple.fink.cvs