Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
gfldex committed Jan 11, 2016
2 parents 15d1a08 + 6ff87ce commit 73a921f
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions lib/ModulesPerl6/DbBuilder/Dist/Source/GitHub.pm
Expand Up @@ -80,8 +80,11 @@ sub load {
} // 0;

# no new commits and we have cached results that will do just fine
return $dist
if $dist->{date_updated} eq $date_updated and not $ENV{FULL_REBUILD};
if ( $dist->{date_updated} eq $date_updated and not $ENV{FULL_REBUILD} ) {
$dist->{_builder}{has_travis} = 1 # reinstate cached travis status
unless $dist->{travis_status} eq 'not set up';
return;
}
$dist->{date_updated} = $date_updated;

log info => 'Dist has new commits. Fetching more info.';
Expand All @@ -102,7 +105,6 @@ sub load {
delete $dist->{koalatee};
$self->_set_readme( map $_->{path}, grep $_->{type} eq 'blob', @$tree );
$self->_set_tests( map $_->{path}, grep $_->{type} eq 'tree', @$tree );

$dist->{_builder}{has_travis} = grep $_->{path} eq '.travis.yml', @$tree;

return $dist;
Expand Down

0 comments on commit 73a921f

Please sign in to comment.