mirror of
https://github.com/getgrav/grav.git
synced 2026-05-06 11:56:09 +02:00
Merge remote-tracking branch 'origin/develop' into develop
This commit is contained in:
@@ -22,7 +22,7 @@
|
||||
"mrclay/minify": "~2.2",
|
||||
"donatj/phpuseragentparser": "~0.3",
|
||||
"pimple/pimple": "~3.0",
|
||||
"rockettheme/toolbox": "dev-develop",
|
||||
"rockettheme/toolbox": "~1.0",
|
||||
"maximebf/debugbar": "~1.10",
|
||||
"ext-mbstring": "*",
|
||||
"ext-openssl": "*",
|
||||
|
||||
1546
composer.lock
generated
1546
composer.lock
generated
File diff suppressed because it is too large
Load Diff
@@ -184,16 +184,19 @@ class InstallCommand extends ConsoleCommand
|
||||
if (in_array($packageName, array_keys($dependencies))) {
|
||||
$this->output->writeln("<green>Package " . $packageName . " already installed as dependency</green>");
|
||||
} else {
|
||||
Installer::isValidDestination($this->destination . DS . $package->install_path);
|
||||
$is_valid_destination = Installer::isValidDestination($this->destination . DS . $package->install_path);
|
||||
if ($is_valid_destination || Installer::lastErrorCode() == Installer::NOT_FOUND) {
|
||||
$this->processPackage($package, true);
|
||||
} else {
|
||||
if (Installer::lastErrorCode() == Installer::EXISTS) {
|
||||
$helper = $this->getHelper('question');
|
||||
$question = new ConfirmationQuestion("The package <cyan>$packageName</cyan> is already installed, overwrite? [y|N] ", false);
|
||||
|
||||
if (Installer::lastErrorCode() == Installer::EXISTS) {
|
||||
$helper = $this->getHelper('question');
|
||||
$question = new ConfirmationQuestion("The package <cyan>$packageName</cyan> is already installed, overwrite? [y|N] ", false);
|
||||
|
||||
if ($helper->ask($this->input, $this->output, $question)) {
|
||||
$this->processPackage($package, true);
|
||||
} else {
|
||||
$this->output->writeln("<yellow>Package " . $packageName . " not overwritten</yellow>");
|
||||
if ($helper->ask($this->input, $this->output, $question)) {
|
||||
$this->processPackage($package, true);
|
||||
} else {
|
||||
$this->output->writeln("<yellow>Package " . $packageName . " not overwritten</yellow>");
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -204,6 +204,7 @@ class UpdateCommand extends ConsoleCommand
|
||||
}
|
||||
|
||||
if (count($ignore)) {
|
||||
$this->output->writeln('');
|
||||
$this->output->writeln("Packages not found or not requiring updates: <red>" . implode('</red>, <red>',
|
||||
$ignore) . "</red>");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user