1
0
Fork 0

Do not send an empty list of packages to the default policy, fixes #1259

pull/1266/merge
Jordi Boggiano 2012-10-25 18:18:02 +02:00
parent 532f237003
commit 711179b2b4
1 changed files with 1 additions and 1 deletions

View File

@ -449,7 +449,7 @@ class Installer
} }
// select prefered package according to policy rules // select prefered package according to policy rules
if ($matches = $policy->selectPreferedPackages($pool, array(), $matches)) { if ($matches && $matches = $policy->selectPreferedPackages($pool, array(), $matches)) {
$newPackage = $pool->literalToPackage($matches[0]); $newPackage = $pool->literalToPackage($matches[0]);
if ($newPackage && $newPackage->getSourceReference() !== $package->getSourceReference()) { if ($newPackage && $newPackage->getSourceReference() !== $package->getSourceReference()) {