Skip to content

Commit

Permalink
CPANTesters db returns an empty string rather than 0 for versions.
Browse files Browse the repository at this point in the history
  • Loading branch information
oalders committed May 10, 2016
1 parent f00fc15 commit a047d09
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions lib/MetaCPAN/Script/CPANTesters.pm
Expand Up @@ -119,8 +119,12 @@ sub index_reports {
$sth->execute;
my @bulk;
while ( my $row_from_db = $sth->fetchrow_hashref ) {
my $release
= join( '-', $row_from_db->{dist}, $row_from_db->{version} );

# The testers db seems to return q{} where we would expect a version of
# 0.

my $version = $row_from_db->{version} || 0;
my $release = join( '-', $row_from_db->{dist}, $version );
my $release_doc = $releases{$release};

# there's a cpantesters dist we haven't indexed
Expand Down

0 comments on commit a047d09

Please sign in to comment.