Update of /cvsroot/fink/scripts/installer/resources In directory sc8-pr-cvs17.sourceforge.net:/tmp/cvs-serv15618
Modified Files: postflight Log Message: Make postflight script run with Leopard's ps and su. Index: postflight =================================================================== RCS file: /cvsroot/fink/scripts/installer/resources/postflight,v retrieving revision 1.13 retrieving revision 1.14 diff -u -d -r1.13 -r1.14 --- postflight 9 Jun 2006 16:59:14 -0000 1.13 +++ postflight 1 Mar 2008 21:26:28 -0000 1.14 @@ -16,7 +16,7 @@ # get ps data for a given PID sub process_info { my($pid) = shift; - my $command = "ps axww -p$pid -o user,ppid,tty,command | tail -n 1"; + my $command = "ps -xww -p$pid -o user,ppid,tty,command | tail -n 1"; my @info = split(/\s+/, `$command`, 4); return ( user => $info[0], @@ -40,7 +40,7 @@ # Running from Installer.app: have Aqua session, so run pathsetup # as user who ran Installer.app. my $real_user = $info{user}; - system "sudo -u $real_user /sw/bin/pathsetup.sh"; + system "sudo -H -u $real_user /sw/bin/pathsetup.sh"; system "osascript -e 'tell application \"Installer\"' -e 'activate' -e 'end tell'"; } else { # Running from commandline: not certain to have Aqua session, so ------------------------------------------------------------------------- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ _______________________________________________ Fink-commits mailing list Fink-commits@lists.sourceforge.net http://news.gmane.org/gmane.os.apple.fink.cvs