summaryrefslogtreecommitdiff
path: root/lib/CPAN.pm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/CPAN.pm')
-rw-r--r--lib/CPAN.pm5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/CPAN.pm b/lib/CPAN.pm
index 5d24a18d7f..558d93b486 100644
--- a/lib/CPAN.pm
+++ b/lib/CPAN.pm
@@ -1668,6 +1668,11 @@ sub _u_r_common {
for $module (@expand) {
my $file = $module->cpan_file;
next unless defined $file; # ??
+ # Don't offer to upgrade the core base.pm with the base.pm of
+ # the Class::Fields. Don't autobundle the core base.pm, either.
+ # This is a horrible hack but hopefully cases like this are very,
+ # very rare indeed.
+ next if $module->id eq 'base' && $file =~ m{/Class-Fields-};
my($latest) = $module->cpan_version;
my($inst_file) = $module->inst_file;
my($have);