Skip to content

Commit

Permalink
Add modules to file in reliable order
Browse files Browse the repository at this point in the history
to solve occasional test failure.

Any order makes as much sense as no order.
  • Loading branch information
rwstauner committed Sep 26, 2014
1 parent 9d3af98 commit 1120d08
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/MetaCPAN/Script/Release.pm
Expand Up @@ -327,7 +327,8 @@ sub import_tarball {
my @modules;

if ( my %provides = %{ $meta->provides } ) {
while ( my ( $module, $data ) = each %provides ) {
foreach my $module ( sort keys %provides ) {
my $data = $provides{$module};
my $path = $data->{file};

# Obey no_index and take the shortest path if multiple files match.
Expand Down

1 comment on commit 1120d08

@oalders
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch!

Please sign in to comment.