1
0
Fork 0

Allow multiple configs to disable the same repo

pull/851/merge
Jordi Boggiano 2012-06-29 11:45:06 +02:00
parent e0edd882c5
commit 890e60c614
1 changed files with 3 additions and 5 deletions

View File

@ -64,11 +64,9 @@ class Config
}
// disable a repository with an anonymous {"name": false} repo
foreach ($this->repositories as $repoName => $repoSpec) {
if (isset($repository[$repoName]) && false === $repository[$repoName]) {
unset($this->repositories[$repoName]);
continue 2;
}
if (1 === count($repository) && false === current($repository)) {
unset($this->repositories[key($repository)]);
continue;
}
// store repo