diff options
author | Struan Donald <struan@exo.org.uk> | 2011-06-09 09:46:43 +0100 |
---|---|---|
committer | Struan Donald <struan@exo.org.uk> | 2011-06-09 09:46:43 +0100 |
commit | bd892f411757a4fbbd81320495e34074aab19980 (patch) | |
tree | 9eabe001505a239d50c4d4c86a5fdeba207a85d7 /perl-external | |
parent | 79edaacb35d12c0f7867aab899e016805e99268b (diff) | |
parent | 2e8c9f4ab19f8db068318239f15f2458dd64aa00 (diff) |
Merge branch 'migrate_to_catalyst' of ssh://git.mysociety.org/data/git/public/fixmystreet into migrate_to_catalyst
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{^(.)(.)}; |