浏览代码

Ignore empty path repositories per issue #4903

Niels Keurentjes 9 年之前
父节点
当前提交
ff6700f9ee
共有 1 个文件被更改,包括 0 次插入4 次删除
  1. 0 4
      src/Composer/Repository/PathRepository.php

+ 0 - 4
src/Composer/Repository/PathRepository.php

@@ -140,10 +140,6 @@ class PathRepository extends ArrayRepository implements ConfigurableRepositoryIn
             $package = $this->loader->load($package);
             $this->addPackage($package);
         }
-
-        if (count($this->getPackages()) == 0) {
-            throw new \RuntimeException(sprintf('No `composer.json` file found in any path repository in "%s"', $this->url));
-        }
     }
 
     /**