mirror of
https://github.com/getgrav/grav.git
synced 2026-07-06 12:19:41 +02:00
Command line GPM: Avoid prompting to reinstall already installed packages
This commit is contained in:
@@ -139,8 +139,11 @@ class InstallCommand extends ConsoleCommand
|
||||
|
||||
foreach($dependency_data as $type => $dep_data) {
|
||||
foreach($dep_data as $name => $dep_package) {
|
||||
|
||||
$this->processPackage($dep_package);
|
||||
Installer::isValidDestination($this->destination . DS . $dep_package->install_path);
|
||||
$error_code = Installer::lastErrorCode();
|
||||
if (!$error_code) {
|
||||
$this->processPackage($dep_package);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user