From: Peter Rabbitson Date: Fri, 8 Mar 2013 17:00:57 +0000 (+0100) Subject: Augment 1b6cbedd (reverting my moronic use of preamble in EU::MM) X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=552b624d485af0d71c5c0524b5046e2c77c70dda;p=dbsrgits%2FDBIx-Class-Historic.git Augment 1b6cbedd (reverting my moronic use of preamble in EU::MM) Instead of whacking things during the MY::distdir override, properly override MY::postamble for upload prereq check injection --- diff --git a/maint/Makefile.PL.inc/50_redefine_makefile_flow.pl b/maint/Makefile.PL.inc/50_redefine_makefile_flow.pl index c407680..45a5218 100644 --- a/maint/Makefile.PL.inc/50_redefine_makefile_flow.pl +++ b/maint/Makefile.PL.inc/50_redefine_makefile_flow.pl @@ -24,6 +24,20 @@ check_create_distdir_prereqs : $mm_proto->oneliner("DBIx::Class::Optional::Dependencies->die_unless_req_ok_for(q(dist_dir))", [qw/-Ilib -MDBIx::Class::Optional::Dependencies/]) ]} +EOM + } +} + +# M::I inserts its own default postamble, so we can't easily override upload +# but we can still hook postamble in EU::MM +{ + package MY; + + sub postamble { + my $snippet = shift->SUPER::postamble(@_); + return <<"EOM"; +$snippet + upload :: check_create_distdir_prereqs check_upload_dist_prereqs check_upload_dist_prereqs :