Title: [123245] trunk/Websites/bugs.webkit.org/attachment.cgi
Revision
123245
Author
[email protected]
Date
2012-07-20 11:43:10 -0700 (Fri, 20 Jul 2012)

Log Message

Add /usr/bin to PATH so PrettyPatch can find git.

Modified Paths


Diff

Modified: trunk/Websites/bugs.webkit.org/attachment.cgi (123244 => 123245)


--- trunk/Websites/bugs.webkit.org/attachment.cgi	2012-07-20 18:40:29 UTC (rev 123244)
+++ trunk/Websites/bugs.webkit.org/attachment.cgi	2012-07-20 18:43:10 UTC (rev 123245)
@@ -393,9 +393,12 @@
     print $cgi->header(-type => 'text/html',
                        -expires => '+3M');
 
+    my $orig_path = $ENV{'PATH'};
+    $ENV{'PATH'} = "/usr/bin:" . $ENV{'PATH'};
     my @prettyargs = ("-I", "/var/www/html/PrettyPatch", "/var/www/html/PrettyPatch/prettify.rb", "--html-exceptions");
     my $r = Apache2::RequestUtil->request;
     my ($in, $out, $err) = $r->spawn_proc_prog("/usr/bin/ruby", \@prettyargs);
+    $ENV{'PATH'} = $orig_path;
     print $in $attachment->data;
     close($in);
     while (<$out>) {
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to