Update CPANPLUS::Dist::Build to CPAN version 0.54
authorChris 'BinGOs' Williams <chris@bingosnet.co.uk>
Mon, 28 Feb 2011 15:12:22 +0000 (15:12 +0000)
committerChris 'BinGOs' Williams <chris@bingosnet.co.uk>
Mon, 28 Feb 2011 15:57:11 +0000 (15:57 +0000)
  [DELTA]

  0.54 Mon Feb 28 11:52:04 GMT 2011
    - Only skip 'perl' as a prereq when CPANPLUS version is
      less than 0.9102

Porting/Maintainers.pl
cpan/CPANPLUS-Dist-Build/lib/CPANPLUS/Dist/Build.pm
cpan/CPANPLUS-Dist-Build/lib/CPANPLUS/Dist/Build/Constants.pm
pod/perldelta.pod

index 40517f9..041c0ce 100755 (executable)
@@ -430,7 +430,7 @@ use File::Glob qw(:case);
     'CPANPLUS::Dist::Build' =>
        {
        'MAINTAINER'    => 'bingos',
-       'DISTRIBUTION'  => 'BINGOS/CPANPLUS-Dist-Build-0.52.tar.gz',
+       'DISTRIBUTION'  => 'BINGOS/CPANPLUS-Dist-Build-0.54.tar.gz',
        'FILES'         => q[cpan/CPANPLUS-Dist-Build],
        'EXCLUDED'      => [ qr{^inc/},
                             qw{ t/99_pod.t
index 46c67da..164bcb0 100644 (file)
@@ -30,7 +30,7 @@ use Locale::Maketext::Simple    Class => 'CPANPLUS', Style => 'gettext';
 
 local $Params::Check::VERBOSE = 1;
 
-$VERSION = '0.52';
+$VERSION = '0.54';
 
 =pod
 
@@ -145,8 +145,8 @@ to create and install modules in your environment.
 
 ### check if the format is available ###
 sub format_available {
-    my $mod = "Module::Build";
-    unless( can_load( modules => { $mod => '0.2611' } ) ) {
+    my $mod = 'Module::Build';
+    unless( can_load( modules => { $mod => '0.2611' }, nocache => 1 ) ) {
         error( loc( "You do not have '%1' -- '%2' not available",
                     $mod, __PACKAGE__ ) );
         return;
@@ -426,8 +426,12 @@ sub _find_prereqs {
         $prereqs->{$_} = $bphash->{$type}->{$_} for keys %{ $bphash->{$type} };
       }
     }
-    # Temporary fix
-    delete $prereqs->{'perl'};
+
+    {
+      delete $prereqs->{'perl'}
+         unless version->new($CPANPLUS::Internals::VERSION)
+             >= version->new('0.9102');
+    }
 
     ### allows for a user defined callback to filter the prerequisite
     ### list as they see fit, to remove (or add) any prereqs they see
index c57edc0..ba1ca86 100644 (file)
@@ -9,7 +9,7 @@ BEGIN {
     require Exporter;
     use vars    qw[$VERSION @ISA @EXPORT];
   
-    $VERSION    = '0.52';
+    $VERSION    = '0.54';
     @ISA        = qw[Exporter];
     @EXPORT     = qw[ BUILD_DIR BUILD ];
 }
index 47f1d4b..4ca8b5b 100644 (file)
@@ -96,6 +96,10 @@ XXX
 
 =item *
 
+C<CPANPLUS::Dist::Build> has been upgraded from version 0.52 to 0.54
+
+=item *
+
 C<Devel::DProf> has been upgraded from version 20110225.01 to 20110228.00.
 
 =item *