]> granicus.if.org Git - php/commitdiff
fix bug in --force on windows
authorGreg Beaver <cellog@php.net>
Thu, 4 Sep 2003 22:21:33 +0000 (22:21 +0000)
committerGreg Beaver <cellog@php.net>
Thu, 4 Sep 2003 22:21:33 +0000 (22:21 +0000)
pear/PEAR/Installer.php

index d15898ed62f88eaade9d803026c28d221d766df4..20624be2be3063fe082e9ee220a2aaac172bb501 100644 (file)
@@ -384,6 +384,7 @@ class PEAR_Installer extends PEAR_Common
             list($type, $data) = $tr;
             switch ($type) {
                 case 'rename':
+                    @unlink($data[1]);
                     @rename($data[0], $data[1]);
                     $this->log(3, "+ mv $data[0] $data[1]");
                     break;