From 2ad75c8b91ca6d287cbf4f3f747c5eecfd01e2b2 Mon Sep 17 00:00:00 2001 From: Flavio Copes Date: Thu, 17 Mar 2016 16:46:17 +0100 Subject: [PATCH] Fix flow --- system/src/Grav/Console/Gpm/InstallCommand.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/system/src/Grav/Console/Gpm/InstallCommand.php b/system/src/Grav/Console/Gpm/InstallCommand.php index 8f34a6a49..3cb0bd37c 100644 --- a/system/src/Grav/Console/Gpm/InstallCommand.php +++ b/system/src/Grav/Console/Gpm/InstallCommand.php @@ -241,9 +241,7 @@ class InstallCommand extends ConsoleCommand if ($major_version_changed) { $question = new ConfirmationQuestion("The package $package_name will be updated to a new major version $new_version, from $old_version. Be sure to read what changed with the new major release. Continue? [y|N] ", false); - if ($helper->ask($this->input, $this->output, $question)) { - $this->processPackage($package, true); - } else { + if (!$helper->ask($this->input, $this->output, $question)) { $this->output->writeln("Package " . $packageName . " not updated"); exit; }