ソースを参照

Add package blacklist temporarily

Jordi Boggiano 13 年 前
コミット
03fe07e4fa
1 ファイル変更7 行追加0 行削除
  1. 7 0
      src/Packagist/WebBundle/Package/Updater.php

+ 7 - 0
src/Packagist/WebBundle/Package/Updater.php

@@ -86,6 +86,8 @@ class Updater
      */
     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();
         }
@@ -114,6 +116,11 @@ class Updater
             if ($version instanceof AliasPackage) {
                 continue;
             }
+
+            if (preg_match($blacklist, $version->getName().' '.$version->getPrettyVersion())) {
+                continue;
+            }
+
             $this->updateInformation($package, $version, $flags);
             $em->flush();
         }