1
0
Fork 0

Merge branch '2.5'

pull/11383/head
Jordi Boggiano 2023-03-15 22:56:15 +01:00
commit 1a3f98601f
No known key found for this signature in database
GPG Key ID: 7BBD42C429EC80BC
2 changed files with 2 additions and 1 deletions

View File

@ -413,7 +413,7 @@ EOT
],
'bin-compat' => [
static function ($val): bool {
return in_array($val, ['auto', 'full', 'symlink']);
return in_array($val, ['auto', 'full', 'proxy', 'symlink']);
},
static function ($val) {
return $val;

View File

@ -115,6 +115,7 @@ class Problem
foreach ($rules as $rule) {
$message = $rule->getPrettyString($repositorySet, $request, $pool, $isVerbose, $installedMap, $learnedPool);
if (in_array($rule->getReason(), $deduplicatableRuleTypes, true) && Preg::isMatchStrictGroups('{^(?P<package>\S+) (?P<version>\S+) (?P<type>requires|conflicts)}', $message, $m)) {
$message = str_replace('%', '%%', $message);
$template = Preg::replace('{^\S+ \S+ }', '%s%s ', $message);
$messages[] = $template;
$templates[$template][$m[1]][$parser->normalize($m[2])] = $m[2];