Make sure we include needed rcopy dependency
John Napiorkowski [Wed, 29 Sep 2010 16:46:24 +0000 (12:46 -0400)]
Changes
lib/Module/Install/Catalyst.pm

diff --git a/Changes b/Changes
index 8a3d5c6..bf2b329 100644 (file)
--- a/Changes
+++ b/Changes
@@ -15,6 +15,8 @@ This file documents the revision history for Perl extension Catalyst-Devel.
           GetOpt::Long
         - Fix typo in share/script/myapp_server.pl.tt (RT #58475)
         - Increased Catalyst::Plugin::ConfigLoader dependency to 0.30
+        - Include File::Copy::Recursive in inc/ when building a dist of an
+          application.
 
 1.28 2010-06-16 02:43:00
         - Fix generated Pod tests so that the first check is if the TEST_POD
index 5d45b69..d081c33 100644 (file)
@@ -8,7 +8,7 @@ require Module::Install::Base;
 
 use File::Find;
 use FindBin;
-use File::Copy::Recursive 'rcopy';
+use File::Copy::Recursive;
 use File::Spec ();
 use Getopt::Long ();
 use Data::Dumper;
@@ -58,6 +58,14 @@ command called in C<Makefile.PL>.
 
 sub catalyst {
     my $self = shift;
+
+    if($Module::Install::AUTHOR) {
+        $self->admin->copy_package(
+            'File::Copy::Recursive',
+            $INC{"File/Copy/Recursive.pm"},
+        );
+    }
+
     print <<EOF;
 *** Module::Install::Catalyst
 EOF