Skip to content

Commit

Permalink
Sitemap release URLs now point at /release/ rather than a download URL.
Browse files Browse the repository at this point in the history
  • Loading branch information
oalders committed Mar 11, 2014
1 parent 34d4257 commit 61e889b
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions bin/generate_sitemap.pl
Expand Up @@ -34,13 +34,12 @@
# building a URL, the cpan_directory is missing, but we also want to
# filter on only the 'latest' entries.

{ object_type => 'release',
field_name => 'download_url',
xml_file => '/tmp/releases.xml.gz',
filter => { status => 'latest' },
{ object_type => 'release',
field_name => 'distribution',
xml_file => '/tmp/releases.xml.gz',
cpan_directory => 'release',
filter => { status => 'latest' },
}
);

foreach my $part (@parts) {
MetaCPAN::Sitemap::process($part);
}
MetaCPAN::Sitemap->new($_)->process for @parts;

0 comments on commit 61e889b

Please sign in to comment.