Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

load mymeta when MYMETA.json is exist

  • Loading branch information...
commit ccc7bbe782a32af68f263e687b12b9cb74110f3d 1 parent 8981300
@masaki authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/Carton.pm
View
2  lib/Carton.pm
@@ -392,7 +392,7 @@ sub find_installs {
return map {
my $module = Carton::Util::load_json($_->[0]);
- my $mymeta = CPAN::Meta->load_file($_->[1])->as_struct({ version => "2" });
+ my $mymeta = -f $_->[1] ? CPAN::Meta->load_file($_->[1])->as_struct({ version => "2" }) : {};
($module->{name} => { %$module, mymeta => $mymeta }) } @installs;
}
Please sign in to comment.
Something went wrong with that request. Please try again.