Fix showing a single package by name in show command, fixes #10623
parent
d955458f27
commit
a2bdf72fa4
|
@ -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)) {
|
||||||
|
|
Loading…
Reference in New Issue