Update of /cvsroot/fink/fink/perlmod/Fink In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv13431
Modified Files: Services.pm ChangeLog Log Message: Fix cmd echo of execute() to show sudo when using build-as-nobody. Index: Services.pm =================================================================== RCS file: /cvsroot/fink/fink/perlmod/Fink/Services.pm,v retrieving revision 1.140 retrieving revision 1.141 diff -u -d -r1.140 -r1.141 --- Services.pm 13 Jan 2005 20:15:58 -0000 1.140 +++ Services.pm 17 Jan 2005 03:52:31 -0000 1.141 @@ -429,12 +429,12 @@ Whether to delete temp-files that are created. The following values are known: - -1 Always delete + -1 Always delete - undef, 0 Delete if script was successful, do not delete - if it failed + 0 (or not passed) + Delete if script was successful, do not delete if it failed - 1 Never delete + 1 Never delete =cut @@ -479,11 +479,7 @@ # Execute each line as a separate command. foreach my $cmd (split(/\n/,$script)) { - if (not $options{'quiet'}) { - $drop_root - ? print "sudo -u nobody sh -c $cmd\n" - : print "$cmd\n"; - } + print "sudo -u nobody sh -c $cmd\n" unless $options{'quiet'}; $drop_root ? system(qw/ sudo -u nobody sh -c /, $cmd) : system($cmd); Index: ChangeLog =================================================================== RCS file: /cvsroot/fink/fink/perlmod/Fink/ChangeLog,v retrieving revision 1.806 retrieving revision 1.807 diff -u -d -r1.806 -r1.807 --- ChangeLog 17 Jan 2005 03:47:27 -0000 1.806 +++ ChangeLog 17 Jan 2005 03:52:31 -0000 1.807 @@ -1,5 +1,9 @@ 2005-01-16 Daniel Macks <[EMAIL PROTECTED]> + * Services.pm: execute() output indicates if using sudo. + +2005-01-16 Daniel Macks <[EMAIL PROTECTED]> + * CLI.pm: Add $timeout param to prompt() and prompt_selection_new(). 2005-01-14 Daniel Macks <[EMAIL PROTECTED]> ------------------------------------------------------- The SF.Net email is sponsored by: Beat the post-holiday blues Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek. It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt _______________________________________________ Fink-commits mailing list Fink-commits@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fink-commits