summaryrefslogtreecommitdiffstats
path: root/lib/Dist/CheckConflicts.pm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Dist/CheckConflicts.pm')
-rw-r--r--lib/Dist/CheckConflicts.pm7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/Dist/CheckConflicts.pm b/lib/Dist/CheckConflicts.pm
index 32da3b1..0c2907f 100644
--- a/lib/Dist/CheckConflicts.pm
+++ b/lib/Dist/CheckConflicts.pm
@@ -99,6 +99,13 @@ sub import {
my %conflicts = %{ $conflicts || {} };
for my $also (@{ $alsos || [] }) {
eval "require $also; 1;" or next;
+ if (!exists $CONFLICTS{$also}) {
+ $also .= '::Conflicts';
+ eval "require $also; 1;" or next;
+ }
+ if (!exists $CONFLICTS{$also}) {
+ next;
+ }
my %also_confs = $also->conflicts;
for my $also_conf (keys %also_confs) {
$conflicts{$also_conf} = $also_confs{$also_conf}