Skip to content

Commit

Permalink
Fix parsing version constraints when unpacking
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolas-grekas committed Aug 24, 2021
1 parent de054be commit ddddba0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Unpacker.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ public function unpack(Operation $op, Result $result = null, &$links = [], bool

$localRepo = $this->composer->getRepositoryManager()->getLocalRepository();
foreach ($op->getPackages() as $package) {
$pkg = $localRepo->findPackage($package['name'], $package['version'] ?: '*');
$pkg = $localRepo->findPackage($package['name'], '*');
$pkg = $pkg ?? $this->composer->getRepositoryManager()->findPackage($package['name'], $package['version'] ?: '*');

// not unpackable or no --unpack flag or empty packs (markers)
Expand Down

0 comments on commit ddddba0

Please sign in to comment.