Command line GPM: Avoid prompting to reinstall already installed packages

This commit is contained in:
Flavio Copes
2015-12-28 18:22:16 +01:00
parent 492b290845
commit 104012228c

View File

@@ -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);
}
}
}
}