Browse files

Update probe.pm

Using the newer 'make_path' and 'remove_tree' causes build/configure to bail out on older versions of File::Path (especially those shipped with perl v5.10). Please see [File::Path#APIChanges][1]

[1]: https://metacpan.org/pod/File::Path#API-CHANGES
  • Loading branch information...
1 parent 3787171 commit 10785df2a5b9eeda8d786a0359d90cfbe448c6d6 @svatsan svatsan committed Mar 8, 2014
Showing with 3 additions and 3 deletions.
  1. +3 −3 build/probe.pm
View
6 build/probe.pm
@@ -2,15 +2,15 @@ package build::probe;
use strict;
use warnings;
-use File::Path qw(make_path remove_tree);
+use File::Path qw(mkpath rmtree);
use File::Spec::Functions qw(curdir catdir rel2abs devnull);
my $devnull = devnull();
my $probe_dir;
END {
- remove_tree($probe_dir)
+ rmtree($probe_dir)
if defined $probe_dir;
}
@@ -34,7 +34,7 @@ END {
sub _to_probe_dir {
unless (defined $probe_dir) {
$probe_dir = rel2abs(catdir(curdir(), 'probe'));
- make_path($probe_dir);
+ mkpath($probe_dir);
}
my $restore = build::probe::restore_cwd->new();
chdir $probe_dir

0 comments on commit 10785df

Please sign in to comment.