Browse Source

Avoid failing on composer show of lazy providers

Jordi Boggiano 10 years ago
parent
commit
8b46880f42
1 changed files with 5 additions and 0 deletions
  1. 5 0
      src/Composer/Repository/ComposerRepository.php

+ 5 - 0
src/Composer/Repository/ComposerRepository.php

@@ -204,6 +204,11 @@ class ComposerRepository extends ArrayRepository
             $this->loadProviderListings($this->loadRootServerFile());
             $this->loadProviderListings($this->loadRootServerFile());
         }
         }
 
 
+        if ($this->lazyProvidersUrl) {
+            // Can not determine list of provided packages for lazy repositories
+            return array();
+        }
+
         if ($this->providersUrl) {
         if ($this->providersUrl) {
             return array_keys($this->providerListing);
             return array_keys($this->providerListing);
         }
         }