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