Permalink
Browse files

[REBUILD] Use original repo_url for dist url for CPAN dists

It was accidentally lost when we split dist and repo urls[^1],
which resulted in site links being "N/A"

[1] f7fdf0b
  • Loading branch information...
zoffixznet committed Jun 14, 2018
1 parent 469084c commit b3e67564c1043fb2995a5e97e61725ceb1224965
Showing with 3 additions and 0 deletions.
  1. +3 −0 lib/ModulesPerl6/DbBuilder/Dist/Source/CPAN.pm
@@ -71,6 +71,9 @@ sub load {
// $meta->{support}{source}
// $dist->{url};
if ($dist->{repo_url}) {
+ $dist->{url} = $dist->{repo_url}
+ if $dist->{url} eq 'N/A';
+
$dist->{repo_url} = "https://github.com/$1/$2"
if $dist->{repo_url} =~ m{^git\@github\.com:([^/]+)/([^/]+\.git)$};
$dist->{repo_url} = Mojo::URL->new(

0 comments on commit b3e6756

Please sign in to comment.