Subject: | cover fails with spaces in pwd |
Attached fix is necessary to work if the currently tested dist has a
space in its working directory.
It does not fix the CPAN installation if the .cpan path
has a space in its path though.
diff -u Devel-Cover-0.79/cover~ Devel-Cover-0.79/cover
--- Devel-Cover-0.79/cover~ 2011-08-05 12:26:39.000000000 +0200
+++ Devel-Cover-0.79/cover 2011-08-09 13:48:21.049911000 +0200
@@ -251,7 +251,7 @@
File::Find::find({ wanted => $gp, no_chdir => 1 }, ".");
if (@gc)
{
- my $c = "gcov2perl -db $dbname @gc";
+ my $c = "gcov2perl -db \"$dbname\" @gc";
print STDERR "cover: running $c\n";
system $c;
}