From fcba5257d9ee46c374eb8e51db5d115da88783bd Mon Sep 17 00:00:00 2001 From: Matthieu Auger Date: Mon, 11 Nov 2013 17:43:11 +0100 Subject: [PATCH] If installer sets prefer option to false, the manager should too. Fixes #2359 --- src/Composer/Installer.php | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/Composer/Installer.php b/src/Composer/Installer.php index 4c04a7eec..30766bb70 100644 --- a/src/Composer/Installer.php +++ b/src/Composer/Installer.php @@ -171,12 +171,8 @@ class Installer unset($devRepo, $package); // end BC - if ($this->preferSource) { - $this->downloadManager->setPreferSource(true); - } - if ($this->preferDist) { - $this->downloadManager->setPreferDist(true); - } + $this->downloadManager->setPreferSource($this->preferSource); + $this->downloadManager->setPreferDist($this->preferDist); // clone root package to have one in the installed repo that does not require anything // we don't want it to be uninstallable, but its requirements should not conflict