Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fix page update for IO::Select
The problem was that IO::Select did not have a description line on github, and
the update script used that instead of the description from the META.info file.

This commit now changes the update script to use the description from META.info,
and only falls back to the github repo if META.info has no "description"
field.
  • Loading branch information
moritz committed Aug 26, 2011
1 parent ebc9830 commit ed348b4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion web/build-project-list.pl
Expand Up @@ -67,7 +67,7 @@ sub getstore {
print "Updated since last check\n";

my $repository = json_get ("https://github.com/api/v2/json/repos/show/$project->{auth}/$project->{repo_name}");
$project ->{description}= $repository->{repository}->{description};
$project->{description} //= $repository->{repository}->{description};

my $tree = json_get("https://github.com/api/v2/json/tree/show/$project->{auth}/$project->{repo_name}/$latest->{id}");
my %files = map { $_->{name} , $_->{type} } @{ $tree->{tree} };
Expand Down Expand Up @@ -157,6 +157,7 @@ sub get_projects {
$projects->{$name}->{'repo_name'} = $repo_name;
$projects->{$name}->{'url'} = $url;
$projects->{$name}->{'badge_panda'} = defined $json->{'source-url'};
$projects->{$name}->{'description'} = $json->{'description'};
};
warn $@ if $@;
}
Expand Down

0 comments on commit ed348b4

Please sign in to comment.