Skip to content

Commit

Permalink
bug symfony#249 Fix unpack algo when requiring an unknown package (fa…
Browse files Browse the repository at this point in the history
…bpot)

This PR was merged into the 1.0-dev branch.

Discussion
----------

Fix unpack algo when requiring an unknown package

fixes symfony#248

Commits
-------

5c5a08e fixed unpack algo when requiring an unknown package
  • Loading branch information
fabpot committed Dec 20, 2017
2 parents adb823e + 5c5a08e commit 861a980
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Unpacker.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ public function unpack(Operation $op): Result

// not unpackable or no --unpack flag or empty packs (markers)
if (
null === $pkg ||
'symfony-pack' !== $pkg->getType() ||
!$op->shouldUnpack() ||
0 === count($pkg->getRequires()) + count($pkg->getDevRequires())
Expand Down

0 comments on commit 861a980

Please sign in to comment.