diff options
Diffstat (limited to 'perl-external')
-rwxr-xr-x | perl-external/bin/module-manage.pl | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/perl-external/bin/module-manage.pl b/perl-external/bin/module-manage.pl index 19e380055..5e826aabf 100755 --- a/perl-external/bin/module-manage.pl +++ b/perl-external/bin/module-manage.pl @@ -8,7 +8,6 @@ use LWP::Simple; use File::Slurp; use Path::Class; use List::MoreUtils 'uniq'; -use CPAN::ParseDistribution; # TODO - 'updates' action that lists packages that could be updated # TODO - add smarts to strip out old packages (could switch to building using files.txt after) @@ -120,6 +119,10 @@ sub index_minicpan { foreach my $missing (@missing_files) { next if $lines_to_add{$missing}; + # do a require here so that this module does not prevent 'setup' from + # being run - needed to install it. + require CPAN::ParseDistribution; + print " Parsing out matches for '$missing'\n"; my ( $A, $B ) = $missing =~ m{^(.)(.)}; |