From 3f2b9b4d4b1e866facdd9cfe03aaf2c5c94305cb Mon Sep 17 00:00:00 2001 From: Jordi Boggiano Date: Tue, 14 May 2013 15:24:18 +0200 Subject: [PATCH] Avoid overwriting notification-url --- src/Composer/Repository/ComposerRepository.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Composer/Repository/ComposerRepository.php b/src/Composer/Repository/ComposerRepository.php index 93badb1c2..5eab777a4 100644 --- a/src/Composer/Repository/ComposerRepository.php +++ b/src/Composer/Repository/ComposerRepository.php @@ -518,7 +518,9 @@ class ComposerRepository extends ArrayRepository implements StreamableRepository protected function createPackage(array $data, $class) { try { - $data['notification-url'] = $this->notifyUrl; + if (!isset($data['notification-url'])) { + $data['notification-url'] = $this->notifyUrl; + } return $this->loader->load($data, 'Composer\Package\CompletePackage'); } catch (\Exception $e) {