Andreas provided a patch to CPAN::Distribution to deal with a bug in core
Andreas J. Koenig [Sat, 27 Mar 2010 17:26:44 +0000 (13:26 -0400)]
 module deprecation

commit 8b7e29685086feb1e01992478bcb0498f584574c
Author: Andreas J. Koenig <andk@cpan.org>
Date:   Tue Mar 16 08:56:03 2010 +0100

    except deprecated modules from short circuiting, uncovered by
Data::TreeDumper/Class::ISA

cpan/CPAN/lib/CPAN/Distribution.pm
dist/Module-CoreList/lib/Module/CoreList.pm

index a664320..ac8f873 100644 (file)
@@ -5,7 +5,7 @@ use CPAN::Distroprefs;
 use CPAN::InfoObj;
 @CPAN::Distribution::ISA = qw(CPAN::InfoObj);
 use vars qw($VERSION);
-$VERSION = "1.9456";
+$VERSION = "1.9456_01";
 
 # Accessors
 sub cpan_comment {
@@ -2576,7 +2576,10 @@ sub unsat_prereq {
                      or $need_version eq '0'    # "==" would trigger warning when not numeric
                      or $need_version eq "undef"
                     )) {
-                next NEED;
+                unless ($nmo->inst_deprecated) {                               
+                    next NEED;                                                 
+                }                                                              
+
             }
 
             $available_version = $nmo->available_version;
index 36542a2..df2e90f 100644 (file)
@@ -13449,7 +13449,7 @@ for my $version ( sort { $a <=> $b } keys %released ) {
        'CPAN::Complete'        => '5.5',
        'CPAN::Debug'           => '5.5001',
        'CPAN::DeferredCode'    => '5.50',
-       'CPAN::Distribution'    => '1.9456',
+       'CPAN::Distribution'    => '1.9456_01',
        'CPAN::Distroprefs'     => '6',
        'CPAN::Distrostatus'    => '5.5',
        'CPAN::Exception::RecursiveDependency'=> '5.5',