Skip to content

Commit

Permalink
Merge pull request #498 from CPAN-API/mickey/release_queue_w_latest
Browse files Browse the repository at this point in the history
when queueing from script/release also provide --latest
  • Loading branch information
oalders committed Jun 24, 2016
2 parents 8469888 + 0bcecfb commit 5302f4e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/MetaCPAN/Script/Release.pm
Expand Up @@ -178,7 +178,10 @@ sub run {
}

if ( $self->queue ) {
local @ARGV = ( qw{ queue --file }, $file );
local @ARGV = (
qw{ queue --file },
$file, ( $self->latest ? '--latest' : () )
);
MetaCPAN::Script::Runner->run;
}
else {
Expand Down

0 comments on commit 5302f4e

Please sign in to comment.