From b750e70f5f516f6f7d47dbbd9681e487d2c2e37f Mon Sep 17 00:00:00 2001 From: Jordi Boggiano Date: Thu, 21 Feb 2013 17:41:38 +0100 Subject: [PATCH] Abort execution when a RepositorySecurityException is thrown --- src/Composer/Repository/ComposerRepository.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/Composer/Repository/ComposerRepository.php b/src/Composer/Repository/ComposerRepository.php index 875d97b9d..b4fb40f0c 100644 --- a/src/Composer/Repository/ComposerRepository.php +++ b/src/Composer/Repository/ComposerRepository.php @@ -483,6 +483,10 @@ class ComposerRepository extends ArrayRepository implements StreamableRepository break; } catch (\Exception $e) { + if ($e instanceof RepositorySecurityException) { + throw $e; + } + if (!$retries) { if ($contents = $this->cache->read($cacheKey)) { if (!$this->degradedMode) {