Permalink
Browse files

require statement should go into the if $self->{metacpan}

  • Loading branch information...
1 parent b42869d commit bad73ad13a4f37daf0c90d27feb3de419b720fd4 @tokuhirom committed Jul 5, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/App/cpanminus/script.pm
@@ -304,8 +304,8 @@ sub search_module {
my($self, $module, $version) = @_;
unless ($self->{mirror_only}) {
- require JSON::PP;
if ($self->{metacpan}) {
+ require JSON::PP;
$self->chat("Searching $module on metacpan ...\n");
my $module_uri = "http://api.metacpan.org/module/$module";
my $module_yaml = $self->get($module_uri);

0 comments on commit bad73ad

Please sign in to comment.