Skip to content

Commit

Permalink
Use different path for release script under test harness.
Browse files Browse the repository at this point in the history
  • Loading branch information
oalders committed Apr 28, 2016
1 parent acf8fc3 commit c17d9e3
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions lib/MetaCPAN/Script/Release.pm
Expand Up @@ -100,9 +100,14 @@ sub run {
elsif ( $_ =~ /^https?:\/\//
&& CPAN::DistnameInfo->new($_)->cpanid )
{
my $d = CPAN::DistnameInfo->new($_);
my $d = CPAN::DistnameInfo->new($_);

# XXX move path to config file
my $file = $self->home->file(
qw(var tmp http authors),
(
'var', ( $ENV{HARNESS_ACTIVE} ? 't' : () ),
'tmp', 'http', 'authors'
),
MetaCPAN::Util::author_dir( $d->cpanid ),
$d->filename,
);
Expand Down

0 comments on commit c17d9e3

Please sign in to comment.