summaryrefslogtreecommitdiff
path: root/dev-vcs/colorsvn/files/colorsvn-0.3.3-use-open2-not-open3.patch
blob: 32757fb9e95e4743b018f4a85d115380cdfee4c2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
https://bugs.gentoo.org/326279

--- a/colorsvn-original
+++ b/colorsvn-original
@@ -56,7 +56,7 @@
 # Foundation, Inc., 51 Franklin Steet, Fifth Floor, Boston, MA 02110-1301, USA.
 
 use Term::ANSIColor;
-use IPC::Open3;
+use IPC::Open2;
 
 use strict;
 use warnings;
@@ -332,7 +332,7 @@ if (! -t STDOUT || $commit == 1 || !$colortty{$terminal} || !$commresolved )
 
 # Keep the pid of the svn process so we can get its return
 # code and use that as our return code.
-my $svn_pid = open3('<&STDIN', \*SVNOUT, \*SVNOUT, $svnPath, @ARGV);
+my $svn_pid = open2(\*SVNOUT, '<&STDIN', $svnPath, @ARGV);
 my $svnName = $svnPath;
 $svnName =~ s,.*/(.*)$,$1,;