Skip to content
Browse files

Make MYMETA bootstrap more clear in the case of failure

  • Loading branch information...
1 parent ddf074f commit ab93e85ae86d8afaa2e09266ec698d673b20d8f8 @xdg xdg committed Dec 10, 2010
Showing with 3 additions and 2 deletions.
  1. +3 −2 Build.PL
View
5 Build.PL
@@ -151,9 +151,10 @@ my $build = ModuleBuildBuilder->new(
);
$build->create_build_script;
-unless (-f "MYMETA.yml") { # fallback if we don't have YAML::Tiny
+if (-f "META.yml" && ! -f "MYMETA.yml") { # fallback if we don't have YAML::Tiny
require File::Copy;
- if ( File::Copy::copy("META.yml", "MYMETA.yml") ) {
+ File::Copy::copy("META.yml", "MYMETA.yml") or warn "Error: $!\n";
+ if ( -f 'MYMETA.yml' ) {
warn "Copied META.yml to MYMETA.yml for bootstrapping\n";
}
else {

0 comments on commit ab93e85

Please sign in to comment.
Something went wrong with that request. Please try again.