]> granicus.if.org Git - php/commitdiff
reverting accidental commit of my fix for #25008 - we'll let Tomas review the patch...
authorGreg Beaver <cellog@php.net>
Sun, 17 Aug 2003 18:12:43 +0000 (18:12 +0000)
committerGreg Beaver <cellog@php.net>
Sun, 17 Aug 2003 18:12:43 +0000 (18:12 +0000)
pear/PEAR/Installer.php

index e38d48204de226df0e48731cb633121ccc996128..6fb653a3702dd4e6d003d8e4f31c0a3fcb466c40 100644 (file)
@@ -222,10 +222,6 @@ class PEAR_Installer extends PEAR_Common
             $this->log(3, "+ mkdir $dest_dir");
         }
         if (empty($atts['replacements'])) {
-            if (!file_exists($orig_file)) {
-                return $this->raiseError("file does not exist",
-                                         PEAR_INSTALLER_FAILED);
-            }
             if (!@copy($orig_file, $dest_file)) {
                 return $this->raiseError("failed to write $dest_file",
                                          PEAR_INSTALLER_FAILED);
@@ -235,10 +231,6 @@ class PEAR_Installer extends PEAR_Common
                 $md5sum = md5_file($dest_file);
             }
         } else {
-            if (!file_exists($orig_file)) {
-                return $this->raiseError("file does not exist",
-                                         PEAR_INSTALLER_FAILED);
-            }
             $fp = fopen($orig_file, "r");
             $contents = fread($fp, filesize($orig_file));
             fclose($fp);
@@ -703,9 +695,6 @@ class PEAR_Installer extends PEAR_Common
                 if (PEAR::isError($res)) {
                     if (empty($options['ignore-errors'])) {
                         $this->rollbackFileTransaction();
-                        if ($res->getMessage() == "file does not exist") {
-                            $this->raiseError("file $file in package.xml does not exist");
-                        }
                         return $this->raiseError($res);
                     } else {
                         $this->log(0, "Warning: " . $res->getMessage());