summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGreg Beaver <cellog@php.net>2003-08-17 18:12:43 +0000
committerGreg Beaver <cellog@php.net>2003-08-17 18:12:43 +0000
commitd05514c7941fc581bdf4e11c6d619b5c410c4d82 (patch)
tree1a7bc9a487b335f5e4da9e5f60fefaf9ab3b931a
parentd1511aca304225a7568a2aa56e3189628083a6c4 (diff)
downloadphp-git-d05514c7941fc581bdf4e11c6d619b5c410c4d82.tar.gz
reverting accidental commit of my fix for #25008 - we'll let Tomas review the patch I submitted (oops). The other stuff was good.
-rw-r--r--pear/PEAR/Installer.php11
1 files changed, 0 insertions, 11 deletions
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());