Explorar el Código

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

Christian Schiffler hace 11 años
padre
commit
fc4cc79a52
Se han modificado 1 ficheros con 3 adiciones y 1 borrados
  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);
+                    }
                 }
             }
         }