Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Add all modules to the DarkPAN, not just the main one. #3

Open
wants to merge 1 commit into
from
Jump to file or symbol
Failed to load files and symbols.
+9 −8
Split
View
@@ -82,14 +82,15 @@ sub inject_files
Carp::croak( "Cannot find '$file'" ) unless $file and -e $file;
my $meta = $self->load_metayaml( $file );
- (my $module = $meta->{name}) =~ s/-/::/g;
-
- $cpmi->add(
- file => $file,
- module => $module,
- version => $meta->{version},
- authorid => $cpmi->config->{author},
- );
+ for my $module ( keys %{$meta->{provides}} )
+ {
+ $cpmi->add(
+ file => $file,
+ module => $module,
+ authorid => $cpmi->config->{author},
+ version => $meta->{provides}->{$module}->{version},
+ );
+ }
}
$cpmi->writelist->inject;