diff options
Diffstat (limited to 'lib/Dist/CheckConflicts.pm')
-rw-r--r-- | lib/Dist/CheckConflicts.pm | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/lib/Dist/CheckConflicts.pm b/lib/Dist/CheckConflicts.pm index 0c01bac..f802c10 100644 --- a/lib/Dist/CheckConflicts.pm +++ b/lib/Dist/CheckConflicts.pm @@ -139,13 +139,11 @@ sub import { $mod =~ s{/}{::}g; return unless $mod =~ /[\w:]+/; - return unless exists $conflicts{$mod}; + return unless defined $CONFLICTS{$for} + && defined $CONFLICTS{$for}{$mod}; { - local @INC = grep { - !(ref($_) eq 'ARRAY' && @$_ > 1 && $_->[1] == \%CONFLICTS) - } @INC; - + local $CONFLICTS{$for}{$mod}; require $file; } |