diff --git a/src/Composer/Repository/ComposerRepository.php b/src/Composer/Repository/ComposerRepository.php
index 29276ce73..218e23992 100644
--- a/src/Composer/Repository/ComposerRepository.php
+++ b/src/Composer/Repository/ComposerRepository.php
@@ -502,10 +502,6 @@ class ComposerRepository extends ArrayRepository implements ConfigurableReposito
}
}
- if (!empty($data['warning'])) {
- $this->io->writeError('Warning from '.$this->url.': '.$data['warning'].'');
- }
-
if (!empty($data['providers-lazy-url'])) {
$this->lazyProvidersUrl = $this->canonicalizeUrl($data['providers-lazy-url']);
$this->hasProviders = true;
@@ -682,6 +678,13 @@ class ComposerRepository extends ArrayRepository implements ConfigurableReposito
}
$data = JsonFile::parseJson($json, $filename);
+ if (!empty($data['warning'])) {
+ $this->io->writeError('Warning from '.$this->url.': '.$data['warning'].'');
+ }
+ if (!empty($data['info'])) {
+ $this->io->writeError('Info from '.$this->url.': '.$data['info'].'');
+ }
+
if ($cacheKey) {
if ($storeLastModifiedTime) {
$lastModifiedDate = $rfs->findHeaderValue($rfs->getLastHeaders(), 'last-modified');
@@ -745,6 +748,13 @@ class ComposerRepository extends ArrayRepository implements ConfigurableReposito
}
$data = JsonFile::parseJson($json, $filename);
+ if (!empty($data['warning'])) {
+ $this->io->writeError('Warning from '.$this->url.': '.$data['warning'].'');
+ }
+ if (!empty($data['info'])) {
+ $this->io->writeError('Info from '.$this->url.': '.$data['info'].'');
+ }
+
$lastModifiedDate = $rfs->findHeaderValue($rfs->getLastHeaders(), 'last-modified');
if ($lastModifiedDate) {
$data['last-modified'] = $lastModifiedDate;