Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Update probe.pm #79

Merged
merged 1 commit into from

2 participants

@svatsan

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. This should probably be changed to detect versions and cascade accordingly, I got rakudo built with this simple fix.

@svatsan svatsan 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
10785df
@FROGGS FROGGS merged commit eae662b into MoarVM:master
@svatsan svatsan deleted the svatsan:patch-1 branch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Mar 7, 2014
  1. @svatsan

    Update probe.pm

    svatsan authored
    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
This page is out of date. Refresh to see the latest.
Showing with 3 additions and 3 deletions.
  1. +3 −3 build/probe.pm
View
6 build/probe.pm
@@ -2,7 +2,7 @@ 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();
@@ -10,7 +10,7 @@ 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
Something went wrong with that request. Please try again.