1
0
Fork 0

Fix showing a single package by name in show command, fixes #10623

pull/10629/head
Jordi Boggiano 2022-03-16 15:00:34 +01:00
parent d955458f27
commit a2bdf72fa4
No known key found for this signature in database
GPG Key ID: 7BBD42C429EC80BC
1 changed files with 1 additions and 1 deletions

View File

@ -255,7 +255,7 @@ EOT
// show single package or single version // show single package or single version
if (isset($package)) { if (isset($package)) {
$versions = array($package->getPrettyVersion() => $package->getVersion()); $versions = array($package->getPrettyVersion() => $package->getVersion());
} elseif (null !== $packageFilter && str_contains($packageFilter, '*')) { } elseif (null !== $packageFilter && !str_contains($packageFilter, '*')) {
list($package, $versions) = $this->getPackage($installedRepo, $repos, $packageFilter, $input->getArgument('version')); list($package, $versions) = $this->getPackage($installedRepo, $repos, $packageFilter, $input->getArgument('version'));
if (!isset($package)) { if (!isset($package)) {