]> git.pld-linux.org Git - projects/distfiles.git/commitdiff
- print cvs command output on error
authorsparky <sparky@pld-linux.org>
Mon, 11 Apr 2011 20:41:24 +0000 (20:41 +0000)
committercvs2git <feedback@pld-linux.org>
Thu, 29 Nov 2012 22:58:17 +0000 (22:58 +0000)
Changed files:
    request-handler.pl -> 1.28

request-handler.pl

index 7dcd881714ff7020eab269b12aacbb4487e42933..0d23b8a28435e156bbd088f99669a213696cba6c 100644 (file)
@@ -72,9 +72,13 @@ $branch = "" if ($branch eq "HEAD");
 $branch = "-r \"$branch\"" if ($branch ne "");
 
 $specdir = File::Basename::basename($spec,('.spec'));
-if (system("cvs -d :pserver:cvs\@cvs.pld-linux.org:/cvsroot get $branch \"packages/$specdir/$spec\" >/dev/null 2>&1") != 0) {
+my $cvs_get = `cvs -d :pserver:cvs\@cvs.pld-linux.org:/cvsroot get $branch "packages/$specdir/$spec" 2>&1`;
+if ( $? ) {
   chdir($oldcwd);
-  report_fatal("cannot cvs get $spec at $branch")
+  my $at_branch = "";
+  $at_branch = " from branch $branch" if $branch;
+  my $code = $? >> 8;
+  report_fatal("cannot cvs get $spec$at_branch;\n$cvs_get\nexited with code $code");
 }
 
 chdir($oldcwd);
This page took 0.098627 seconds and 4 git commands to generate.