Ignore passed internal extensions (#473)

* Ignore passed internal extensions

* Add tests

* Add tests
This commit is contained in:
Jerry Ma
2024-06-05 23:20:21 +08:00
committed by GitHub
parent b3018af61c
commit db9645641f
5 changed files with 24 additions and 4 deletions

View File

@@ -68,7 +68,7 @@ class DownloadCommand extends BaseCommand
}
// mode: --for-extensions
if ($for_ext = $input->getOption('for-extensions')) {
$ext = array_map('trim', array_filter(explode(',', $for_ext)));
$ext = $this->parseExtensionList($for_ext);
$sources = $this->calculateSourcesByExt($ext, !$input->getOption('without-suggestions'));
if (PHP_OS_FAMILY !== 'Windows') {
array_unshift($sources, 'pkg-config');