1
0
Fork 0

Prepare for upcoming format break

pull/534/head
Jordi Boggiano 2012-04-06 19:56:34 +02:00
parent bfd48b06bd
commit a67f62990c
2 changed files with 6 additions and 1 deletions

2
composer.lock generated
View File

@ -1,5 +1,5 @@
{
"hash": "4c4d0c5fe9463c0bc507921d46045821",
"hash": "25c80534204714cf48b2e67611a370c5",
"packages": [
{
"package": "justinrainbow/json-schema",

View File

@ -51,6 +51,11 @@ class ComposerRepository extends ArrayRepository
throw new \UnexpectedValueException('Could not parse package list from the '.$this->url.' repository');
}
if (isset($packages['includes'])) {
$this->io->write('<error>Your version of composer is too old, please run `php composer.phar self-update` to update it.</error>');
exit(1);
}
$loader = new ArrayLoader();
foreach ($packages as $data) {
foreach ($data['versions'] as $rev) {