diff options
author | Graham Knop <haarg@haarg.org> | 2018-08-27 11:12:05 +0200 |
---|---|---|
committer | Sawyer X <xsawyerx@cpan.org> | 2018-08-27 23:28:38 +0300 |
commit | c8db801ca3b02180e1265a309fce490671399025 (patch) | |
tree | 5e3c172d9b021c97bf469732c1c50bb7201f092b /dist | |
parent | 120060c86e233cb9f588314214137f3ed1b48e2a (diff) | |
download | perl-c8db801ca3b02180e1265a309fce490671399025.tar.gz |
fix mkpath call to be compatible with older File::Path
mkpath can be called multiple ways, but most aren't supported by very
old versions of File::Path. A prerequisite could be added on a newer
version of the module that that supports the new call signature, but
this introduces a circular dependency. While theoretically this
dependency should be resolvable, since the File::Spec prereq listed in
File::Path is version 0, some toolchains (in particular older CPAN.pm)
will fail to do so.
There isn't any particular advantage to using the new call signature, so
a simple solution is to adjust the test to use the older style.
Diffstat (limited to 'dist')
-rwxr-xr-x[-rw-r--r--] | dist/PathTools/t/abs2rel.t | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/dist/PathTools/t/abs2rel.t b/dist/PathTools/t/abs2rel.t index b77a1c2715..b813e3d1a6 100644..100755 --- a/dist/PathTools/t/abs2rel.t +++ b/dist/PathTools/t/abs2rel.t @@ -25,7 +25,7 @@ sub test_rel2abs { File::Spec->catdir('first_sub_dir', 'sub_sub_dir'), 'second_sub_dir' ); - mkpath(@subdirs, { mode => 0711 }) + mkpath(\@subdirs, 0, 0711) or die "Unable to mkpath: $!"; open my $OUT2, '>', |