/**
  * @override \ComponentManager\PackageRepository\PackageRepository
  */
 public function satisfiesVersion($versionSpecification, ComponentVersion $version)
 {
     return $versionSpecification == $version->getVersion() || $versionSpecification == $version->getRelease();
 }
 /**
  * Get target directory.
  *
  * @param \ComponentManager\Component        $component
  * @param \ComponentManager\ComponentVersion $version
  *
  * @return string
  */
 protected function getTargetDirectory(Component $component, ComponentVersion $version)
 {
     return sprintf(static::TARGET_DIRECTORY_FORMAT, $component->getName(), $version->getVersion());
 }