X-Git-Url: http://erislabs.net/gitweb/?p=libwww-opensearch-perl.git;a=blobdiff_plain;f=inc%2FModule%2FInstall%2FWriteAll.pm;h=e6afa424c39a8ccc6f043238c5ab82009591ff02;hp=12471e5228e3330c94a8634062c94a9b8f6a2ee2;hb=70fa825da53bce7cee2d56a3a9d3cbeb2b4c7076;hpb=85d58c49caf33a66fdee3b54c6fda4981c7a8d47 diff --git a/inc/Module/Install/WriteAll.pm b/inc/Module/Install/WriteAll.pm index 12471e5..e6afa42 100644 --- a/inc/Module/Install/WriteAll.pm +++ b/inc/Module/Install/WriteAll.pm @@ -6,7 +6,7 @@ use Module::Install::Base (); use vars qw{$VERSION @ISA $ISCORE}; BEGIN { - $VERSION = '0.91';; + $VERSION = '0.97';; @ISA = qw{Module::Install::Base}; $ISCORE = 1; } @@ -26,7 +26,10 @@ sub WriteAll { $self->check_nmake if $args{check_nmake}; unless ( $self->makemaker_args->{PL_FILES} ) { - $self->makemaker_args( PL_FILES => {} ); + # XXX: This still may be a bit over-defensive... + unless ($self->makemaker(6.25)) { + $self->makemaker_args( PL_FILES => {} ) if -f 'Build.PL'; + } } # Until ExtUtils::MakeMaker support MYMETA.yml, make sure