From b2efcb1078b8abfb9f20ae228dc25510766baa52 Mon Sep 17 00:00:00 2001 From: Jordi Boggiano Date: Tue, 20 Dec 2016 13:55:25 +0100 Subject: [PATCH] Update dist/source mirrors as well when updating a package's URL --- src/Composer/Installer.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Composer/Installer.php b/src/Composer/Installer.php index 3f619aef4..ec8157456 100644 --- a/src/Composer/Installer.php +++ b/src/Composer/Installer.php @@ -1151,6 +1151,9 @@ class Installer if ($package instanceof CompletePackage && $newPackage instanceof CompletePackage) { $package->setAbandoned($newPackage->getReplacementPackage() ?: $newPackage->isAbandoned()); } + + $package->setDistMirrors($newPackage->getDistMirrors()); + $package->setSourceMirrors($newPackage->getSourceMirrors()); } } }