Skip to content

Commit

Permalink
use RELEASE_STATUS instead of is_trial mutator
Browse files Browse the repository at this point in the history
is_trial is likely to become read-only as a part of
rjbs/Dist-Zilla#438 which adds support for customizing
release status
  • Loading branch information
xdg committed Mar 30, 2015
1 parent be66738 commit e7f96ad
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion lib/Dist/Zilla/App/Command/update.pm
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,12 @@ sub opt_spec {

sub execute {
my ($self, $opt) = @_;
$self->zilla->is_trial(1) if $opt->trial;
my $zilla;
{
local $ENV{RELEASE_STATUS} = $ENV{RELEASE_STATUS};
$ENV{RELEASE_STATUS} ||= $opt->trial ? "testing" : "stable";
$zilla = $self->zilla;
}
$self->log("update: building into tmpdir");
my ($built_in) = $self->zilla->ensure_built_in_tmpdir;
$self->log("update: removing $built_in");
Expand Down

0 comments on commit e7f96ad

Please sign in to comment.