cvs: pear-core /PEAR/Installer/Role Cfg.php

From: Date: Wed, 14 May 2008 21:26:30 +0000
Subject: cvs: pear-core /PEAR/Installer/Role Cfg.php
Groups: php.pear.cvs php.pear.core 
Request: Send a blank email to pear-core+get-7562@lists.php.net to get a copy of this message
cellog Wed May 14 21:26:30 2008 UTC Modified files: /pear-core/PEAR/Installer/Role Cfg.php Log: * Fix Bug #13386 &quot;pear install --register-only&quot; fails with cfg role [cellog] http://cvs.php.net/viewvc.cgi/pear-core/PEAR/Installer/Role/Cfg.php?r1=1.7&r2=1.8&diff_format=u Index: pear-core/PEAR/Installer/Role/Cfg.php diff -u pear-core/PEAR/Installer/Role/Cfg.php:1.7 pear-core/PEAR/Installer/Role/Cfg.php:1.8 --- pear-core/PEAR/Installer/Role/Cfg.php:1.7 Tue May 13 23:53:11 2008 +++ pear-core/PEAR/Installer/Role/Cfg.php Wed May 14 21:26:30 2008 @@ -15,7 +15,7 @@ * @author Greg Beaver <cellog@php.net> * @copyright 2007-2008 The PHP Group * @license http://www.php.net/license/3_0.txt PHP License 3.0 - * @version CVS: $Id: Cfg.php,v 1.7 2008/05/13 23:53:11 cellog Exp $ + * @version CVS: $Id: Cfg.php,v 1.8 2008/05/14 21:26:30 cellog Exp $ * @link http://pear.php.net/package/PEAR * @since File available since Release 1.7.0 */ @@ -65,7 +65,7 @@ function processInstallation($pkg, $atts, $file, $tmp_path, $layer = null) { $test = parent::processInstallation($pkg, $atts, $file, $tmp_path, $layer); - if (@file_exists($test[2])) { + if (@file_exists($test[2]) && @file_exists($test[3])) { $md5 = md5_file($test[2]); // configuration has already been installed, check for mods if ($md5 !== $this->md5 && $md5 !== md5_file($test[3])) { @@ -78,7 +78,7 @@ $tmpcfg = $this->config->get('temp_dir'); $newloc = System::mkdir(array('-p', $tmpcfg)); if (!$newloc) { - // try temp_dir + // try temp_dir $newloc = System::mktemp(array('-d')); if (!$newloc || PEAR::isError($newloc)) { PEAR::popErrorHandling();

« previous php.pear.core (#7562) next »