Skip to content

Commit

Permalink
External: cygwin script (role) returned structure fix
Browse files Browse the repository at this point in the history
  • Loading branch information
mickeyn committed May 17, 2017
1 parent ef51fc2 commit 8f64482
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions lib/MetaCPAN/Script/Role/External/Cygwin.pm
Expand Up @@ -58,12 +58,15 @@ MIRROR: {
map s/\n+/ /gr, split /^([a-z]+): /m, $desc;
$attr{category} = [ split / /, $attr{category} ];
next if grep /^(Debug|_obsolete)$/, @{ $attr{category} };
$ret->{ $pkg =~ s/^perl-//r } = $pkg;
$ret->{dist}{ $pkg =~ s/^perl-//r } = $pkg;
}
}
$self->ua->timeout($timeout);

log_debug { sprintf "Found %d cygwin-CPAN packages", scalar keys %$ret };
log_debug {
sprintf "Found %d cygwin-CPAN packages",
scalar keys %{ $ret->{dist} }
};

return $ret;
}
Expand Down

0 comments on commit 8f64482

Please sign in to comment.