cvs: php-src /pear/PEAR Installer.php

From: Date: Sun, 14 Sep 2003 20:17:24 +0000
Subject: cvs: php-src /pear/PEAR Installer.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-12734@lists.php.net to get a copy of this message
cellog Sun Sep 14 16:17:24 2003 EDT Modified files: /php-src/pear/PEAR Installer.php Log: found bug in _installFile() thanks to unit testing. - if a bad md5sum was found, and --force wasn't specified, the temporary file was never deleted Index: php-src/pear/PEAR/Installer.php diff -u php-src/pear/PEAR/Installer.php:1.114 php-src/pear/PEAR/Installer.php:1.115 --- php-src/pear/PEAR/Installer.php:1.114 Thu Sep 11 10:57:10 2003 +++ php-src/pear/PEAR/Installer.php Sun Sep 14 16:17:24 2003 @@ -18,7 +18,7 @@ // | Martin Jansen <mj@php.net> | // +----------------------------------------------------------------------+ // -// $Id: Installer.php,v 1.114 2003/09/11 14:57:10 cox Exp $ +// $Id: Installer.php,v 1.115 2003/09/14 20:17:24 cellog Exp $ require_once 'PEAR/Common.php'; require_once 'PEAR/Registry.php'; @@ -292,6 +292,8 @@ $this->log(2, "md5sum ok: $final_dest_file"); } else { if (empty($options['force'])) { + // delete the file + @unlink($dest_file); return $this->raiseError("bad md5sum for file $final_dest_file", PEAR_INSTALLER_FAILED); } else {

« previous php.pear.cvs (#12734) next »