Navigation Menu

Skip to content

Commit

Permalink
Use metacpan for the PKGBUILD url.
Browse files Browse the repository at this point in the history
  • Loading branch information
juster committed Mar 18, 2015
1 parent 3628e73 commit 662ad51
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions lib/CPANPLUS/Dist/Arch.pm
Expand Up @@ -1641,11 +1641,9 @@ sub _prepare_status
sub _get_disturl
{
croak 'Invalid arguments to _get_disturl method' if @_ != 1;
my $self = shift;
my $module = $self->parent;

my $distname = $module->package_name;
return join '/', $CPANURL, 'dist', $distname;
my $self = shift;
my $dist = $self->parent->package_name;
return "https://metacpan.org/release/$dist";
}

#---INSTANCE METHOD---
Expand Down

0 comments on commit 662ad51

Please sign in to comment.