1
0
Fork 0

Fix usage of DefaultPolicy in show command

pull/8471/head
Jordi Boggiano 2019-12-13 17:21:21 +01:00
parent 23b3118065
commit 620497a2ed
No known key found for this signature in database
GPG Key ID: 7BBD42C429EC80BC
1 changed files with 1 additions and 1 deletions

View File

@ -563,7 +563,7 @@ EOT
$pool = $repositorySet->createPoolForPackage($package->getName());
// select preferred package according to policy rules
if (!$matchedPackage && $matches && $preferred = $policy->selectPreferredPackages($pool, array(), $matches)) {
if (!$matchedPackage && $matches && $preferred = $policy->selectPreferredPackages($pool, $matches)) {
$matchedPackage = $pool->literalToPackage($preferred[0]);
}