Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Add package blacklist temporarily
  • Loading branch information
Seldaek committed Apr 27, 2012
1 parent 66d8a03 commit 03fe07e
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/Packagist/WebBundle/Package/Updater.php
Expand Up @@ -86,6 +86,8 @@ public function __construct(RegistryInterface $doctrine)
*/
public function update(Package $package, RepositoryInterface $repository, $flags = 0, \DateTime $start = null)
{
$blacklist = '{^symfony/symfony (2.0.[456]|dev-charset|dev-console)}i';

if (null === $start) {
$start = new \DateTime();
}
Expand Down Expand Up @@ -114,6 +116,11 @@ public function update(Package $package, RepositoryInterface $repository, $flags
if ($version instanceof AliasPackage) {
continue;
}

if (preg_match($blacklist, $version->getName().' '.$version->getPrettyVersion())) {
continue;
}

$this->updateInformation($package, $version, $flags);
$em->flush();
}
Expand Down

0 comments on commit 03fe07e

Please sign in to comment.