From a67f62990c2107b95bb5ffcbf909a6b4a56557fe Mon Sep 17 00:00:00 2001 From: Jordi Boggiano Date: Fri, 6 Apr 2012 19:56:34 +0200 Subject: [PATCH] Prepare for upcoming format break --- composer.lock | 2 +- src/Composer/Repository/ComposerRepository.php | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/composer.lock b/composer.lock index 1bbdba786..784c53ef8 100644 --- a/composer.lock +++ b/composer.lock @@ -1,5 +1,5 @@ { - "hash": "4c4d0c5fe9463c0bc507921d46045821", + "hash": "25c80534204714cf48b2e67611a370c5", "packages": [ { "package": "justinrainbow/json-schema", diff --git a/src/Composer/Repository/ComposerRepository.php b/src/Composer/Repository/ComposerRepository.php index c05af141d..5a0c84de9 100644 --- a/src/Composer/Repository/ComposerRepository.php +++ b/src/Composer/Repository/ComposerRepository.php @@ -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('Your version of composer is too old, please run `php composer.phar self-update` to update it.'); + exit(1); + } + $loader = new ArrayLoader(); foreach ($packages as $data) { foreach ($data['versions'] as $rev) {