Skip to content

Commit

Permalink
Fix invalid skipping of tag when package isn't added in root package
Browse files Browse the repository at this point in the history
  • Loading branch information
francoispluchino committed Oct 2, 2014
1 parent c1d81f0 commit bc35a60
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Repository/VcsPackageFilter.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ public function __construct(RootPackageInterface $package)
public function skip(AssetTypeInterface $assetType, $name, $version)
{
if (!isset($this->requires[$name])) {
return true;
return false;
}

/* @var Link $require */
Expand Down
2 changes: 1 addition & 1 deletion Tests/Repository/VcsPackageFilterTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ protected function tearDown()
public function getDataProvider()
{
return array(
array('acme/foobar', 'v1.0.0', 'stable', array(), true),
array('acme/foobar', 'v1.0.0', 'stable', array(), false),

array('acme/foobar', 'v1.0.0', 'stable', array('acme/foobar' => '>=1.0'), false),
array('acme/foobar', 'v1.0.0-RC1', 'stable', array('acme/foobar' => '>=1.0'), true),
Expand Down

0 comments on commit bc35a60

Please sign in to comment.