summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Bugzilla/CPAN.pm5
1 files changed, 3 insertions, 2 deletions
diff --git a/Bugzilla/CPAN.pm b/Bugzilla/CPAN.pm
index 1ffac601c..8f6749330 100644
--- a/Bugzilla/CPAN.pm
+++ b/Bugzilla/CPAN.pm
@@ -96,10 +96,10 @@ sub feature {
return 0 unless _CAN_HAS_FEATURE;
return 1 if $FEATURE_LOADED{$feature_name};
return 0 unless $class->has_feature($feature_name);
-
+
my $meta = $class->cpan_meta;
my $feature = $meta->feature($feature_name);
- my @modules = $feature->prereqs->merged_requirements->required_modules;
+ my @modules = $feature->prereqs->merged_requirements(['runtime'], ['requires'])->required_modules;
Module::Runtime::require_module($_) foreach @modules;
return $FEATURE_LOADED{$feature_name} = 1;
}
@@ -110,6 +110,7 @@ sub preload_features {
my $meta = $class->cpan_meta;
foreach my $feature ($meta->features) {
+ next if $feature->identifier eq 'mod_perl';
$class->feature($feature->identifier);
}
}