Skip Menu |

This queue is for tickets about the Cvs CPAN distribution.

Report information
The Basics
Id: 5658
Status: resolved
Priority: 0/
Queue: Cvs

People
Owner: Nobody in particular
Requestors: Judith [...] osdl.org
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 0.05
Fixed in: (no value)



Subject: Catching return value of cvs command
On line 482 in Cvs::Command::Base.pm, the $rv does not reflect the return value of the cvs command executed. Capturing the $? seems to work. I have Checkouts not complete, but the Cvs::Result::Checkout->{success} does not get set. This patch worked for me: --- Cvs-0.05/lib/Cvs/Command/Base.orig.pm 2004-03-13 08:41:27.000000000 0800 +++ Cvs-0.05/lib/Cvs/Command/Base.pm 2004-03-13 08:42:11.000000000 -0800 @@ -231,7 +231,7 @@ } } - my $rv = $h->finish(); + my $rv = $h->finish() || $?; # # Restoring/cleaning-up environment