From: Amitai Schlair Date: Fri, 4 Sep 2009 19:56:55 +0000 (-0500) Subject: It's STDOUT we have to shut up for cvs, and $savedout has to be X-Git-Tag: 3.14159265~76^2~1 X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/commitdiff_plain/d79cf3728d9984e92e2bffd147d280a697b46fe6 It's STDOUT we have to shut up for cvs, and $savedout has to be restored just so. --- diff --git a/IkiWiki/Plugin/cvs.pm b/IkiWiki/Plugin/cvs.pm index 60f5372eb..8409bebed 100644 --- a/IkiWiki/Plugin/cvs.pm +++ b/IkiWiki/Plugin/cvs.pm @@ -105,10 +105,10 @@ sub cvs_runcvs(@) { chdir $config{srcdir} || error("Cannot chdir to $config{srcdir}: $!"); - open(my $savederr, ">&STDERR"); - open(STDERR, ">", "/dev/null"); + open(my $savedout, ">&STDOUT"); + open(STDOUT, ">", "/dev/null"); my $ret = system(@cmd); - open(STDERR, ">$savederr"); + open(STDOUT, ">&", $savedout); return ($ret == 0) ? 1 : 0; }