Only keep track of empty references that returned a 404

main
Jordi Boggiano 5 years ago
parent 6473dd9185
commit 6bce9da8c8
No known key found for this signature in database
GPG Key ID: 7BBD42C429EC80BC

@ -223,7 +223,7 @@ class VcsRepository extends ArrayRepository implements ConfigurableRepositoryInt
$this->addPackage($this->loader->load($this->preProcess($driver, $data, $identifier)));
} catch (\Exception $e) {
if ($e instanceof TransportException) {
if ($e instanceof TransportException && $e->getCode() === 404) {
$this->emptyReferences[] = $identifier;
}
if ($verbose) {
@ -303,7 +303,9 @@ class VcsRepository extends ArrayRepository implements ConfigurableRepositoryInt
}
$this->addPackage($package);
} catch (TransportException $e) {
$this->emptyReferences[] = $identifier;
if ($e->getCode() === 404) {
$this->emptyReferences[] = $identifier;
}
if ($verbose) {
$this->io->writeError('<warning>Skipped branch '.$branch.', no composer file was found</warning>');
}

Loading…
Cancel
Save