Преглед изворни кода

Fix cache directory upgrading - do not try to remove the destination directory.

Christian Schiffler пре 11 година
родитељ
комит
fc4cc79a52
1 измењених фајлова са 3 додато и 1 уклоњено
  1. 3 1
      src/Composer/Factory.php

+ 3 - 1
src/Composer/Factory.php

@@ -118,7 +118,9 @@ class Factory
                             @rename($child, $dir.'/'.basename($child));
                         }
                     }
-                    @rmdir($oldPath);
+                    if ($config->get('cache-dir') != $oldPath) {
+                        @rmdir($oldPath);
+                    }
                 }
             }
         }