mirror of
https://github.com/crazywhalecc/static-php-cli.git
synced 2026-07-13 20:05:35 +08:00
Allow unstable for PECL downloads
This commit is contained in:
@@ -54,7 +54,7 @@ class PECL implements DownloadTypeInterface, CheckUpdateInterface
|
|||||||
$versions = [];
|
$versions = [];
|
||||||
logger()->debug('Matched ' . count($matches['version']) . " releases for {$name} from PECL");
|
logger()->debug('Matched ' . count($matches['version']) . " releases for {$name} from PECL");
|
||||||
foreach ($matches['version'] as $i => $version) {
|
foreach ($matches['version'] as $i => $version) {
|
||||||
if ($matches['state'][$i] !== 'stable') {
|
if ($matches['state'][$i] !== 'stable' && ($config['prefer-stable'] ?? true) === true) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
$versions[$version] = $peclName . '-' . $version . '.tgz';
|
$versions[$version] = $peclName . '-' . $version . '.tgz';
|
||||||
|
|||||||
@@ -91,7 +91,7 @@ class ConfigValidator
|
|||||||
'bitbuckettag' => [['repo'], ['extract']],
|
'bitbuckettag' => [['repo'], ['extract']],
|
||||||
'local' => [['dirname'], ['extract']],
|
'local' => [['dirname'], ['extract']],
|
||||||
'pie' => [['repo'], ['extract']],
|
'pie' => [['repo'], ['extract']],
|
||||||
'pecl' => [['name'], ['extract']],
|
'pecl' => [['name'], ['extract', 'prefer-stable']],
|
||||||
'php-release' => [['domain'], ['extract']],
|
'php-release' => [['domain'], ['extract']],
|
||||||
'custom' => [[], ['func']],
|
'custom' => [[], ['func']],
|
||||||
];
|
];
|
||||||
|
|||||||
Reference in New Issue
Block a user