From 860528a25138cb12617dfe603048864837e4856e Mon Sep 17 00:00:00 2001 From: Helmut Hummel Date: Wed, 30 Mar 2016 19:35:46 +0200 Subject: [PATCH] Use unstable as default stability for now --- src/Command/SelfUpdateCommand.php | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/Command/SelfUpdateCommand.php b/src/Command/SelfUpdateCommand.php index d8cafc7b..93a1b901 100755 --- a/src/Command/SelfUpdateCommand.php +++ b/src/Command/SelfUpdateCommand.php @@ -72,16 +72,18 @@ protected function execute(InputInterface $input, OutputInterface $output) $strategy->setCurrentLocalVersion($this->getApplication()->getVersion()); $stability = $input->getOption('stability'); - if (!empty($stability)) { - $strategy->setStability($stability); + if (empty($stability)) { + // Unstable by default. Should be removed once we have a 2.0.0 final + $stability = GithubStrategy::UNSTABLE; } + $strategy->setStability($stability); if ($input->getOption('check')) { $result = $updater->hasUpdate(); if ($result) { $output->writeln(sprintf( 'The %s build available remotely is: %s', - $strategy->getStability() === 'any' ? 'latest' : 'current ' . $strategy->getStability(), + $strategy->getStability() === GithubStrategy::ANY ? 'latest' : 'current ' . $strategy->getStability(), $updater->getNewVersion() )); } elseif (false === $updater->getNewVersion()) {