1
0
Fork 0

Outout message when trying to update non-installed packages

pull/1640/head
Christian Jul Jensen 2013-03-01 14:35:32 +01:00
parent 98ada572ec
commit b04dbf5d71
1 changed files with 6 additions and 1 deletions

View File

@ -670,7 +670,12 @@ class Installer
foreach ($this->updateWhitelist as $packageName => $void) {
$packageQueue = new \SplQueue;
foreach ($pool->whatProvides($packageName) as $depPackage) {
$depPackages = $pool->whatProvides($packageName);
if (count($depPackages) == 0) {
$this->io->write('<warning>Package "' . $packageName . '" listed for update is not installed. Ignoring.<warning>');
}
foreach ($depPackages as $depPackage) {
$packageQueue->enqueue($depPackage);
}