Update of /cvsroot/fink/fink
In directory fdv4jf1.ch3.sourceforge.com:/tmp/cvs-serv18160

Modified Files:
      Tag: branch_0_29
        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.31.2.1
diff -u -d -r1.31 -r1.31.2.1
--- inject.pl   1 Apr 2009 04:46:21 -0000       1.31
+++ inject.pl   16 May 2009 04:13:04 -0000      1.31.2.1
@@ -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.503.2.15
retrieving revision 1.503.2.16
diff -u -d -r1.503.2.15 -r1.503.2.16
--- ChangeLog   15 May 2009 19:31:49 -0000      1.503.2.15
+++ ChangeLog   16 May 2009 04:13:04 -0000      1.503.2.16
@@ -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-13  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

Reply via email to