This should result in equivalent behavior since it is still before the
main upload rule.
$mm_proto->oneliner("DBIx::Class::Optional::Dependencies->die_unless_req_ok_for(q(dist_dir))", [qw/-Ilib -MDBIx::Class::Optional::Dependencies/])
]}
-EOM
- }
-}
-
-# add an upload target check as a *preamble*
-# will ensure things being assembled in the right order
-preamble <<"EOP";
-
upload :: check_create_distdir_prereqs check_upload_dist_prereqs
check_upload_dist_prereqs :
$mm_proto->oneliner("DBIx::Class::Optional::Dependencies->die_unless_req_ok_for(q(dist_upload))", [qw/-Ilib -MDBIx::Class::Optional::Dependencies/])
]}
-EOP
+EOM
+ }
+}
# EU::MM BUG - workaround
# somehow the init_PM of EUMM (in MM_Unix) interprets ResultClass.pod.proto