From: Greg Beaver Date: Sun, 17 Aug 2003 18:12:43 +0000 (+0000) Subject: reverting accidental commit of my fix for #25008 - we'll let Tomas review the patch... X-Git-Tag: RELEASE_0_7~592 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d05514c7941fc581bdf4e11c6d619b5c410c4d82;p=php reverting accidental commit of my fix for #25008 - we'll let Tomas review the patch I submitted (oops). The other stuff was good. --- diff --git a/pear/PEAR/Installer.php b/pear/PEAR/Installer.php index e38d48204d..6fb653a370 100644 --- a/pear/PEAR/Installer.php +++ b/pear/PEAR/Installer.php @@ -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());