ソースを参照

If installer sets prefer option to false, the manager should too. Fixes #2359

Matthieu Auger 12 年 前
コミット
fcba5257d9
1 ファイル変更2 行追加6 行削除
  1. 2 6
      src/Composer/Installer.php

+ 2 - 6
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