cvs: pear-core /PEAR/Downloader Package.php

From: Date: Fri, 19 Aug 2005 19:32:20 +0000
Subject: cvs: pear-core /PEAR/Downloader Package.php
Groups: php.pear.cvs php.pear.core 
Request: Send a blank email to pear-core+get-3654@lists.php.net to get a copy of this message
cellog Fri Aug 19 15:32:20 2005 EDT Modified files: /pear-core/PEAR/Downloader Package.php Log: set explicit group in this case http://cvs.php.net/diff.php/pear-core/PEAR/Downloader/Package.php?r1=1.80&r2=1.81&ty=u Index: pear-core/PEAR/Downloader/Package.php diff -u pear-core/PEAR/Downloader/Package.php:1.80 pear-core/PEAR/Downloader/Package.php:1.81 --- pear-core/PEAR/Downloader/Package.php:1.80 Fri Aug 19 15:12:29 2005 +++ pear-core/PEAR/Downloader/Package.php Fri Aug 19 15:32:20 2005 @@ -15,7 +15,7 @@ * @author Greg Beaver <cellog@php.net> * @copyright 1997-2005 The PHP Group * @license http://www.php.net/license/3_0.txt PHP License 3.0 - * @version CVS: $Id: Package.php,v 1.80 2005/08/19 19:12:29 cellog Exp $ + * @version CVS: $Id: Package.php,v 1.81 2005/08/19 19:32:20 cellog Exp $ * @link http://pear.php.net/package/PEAR * @since File available since Release 1.4.0a1 */ @@ -1261,7 +1261,14 @@ return $a; } - function _fromFile($param) + + /** + * This will retrieve from a local file if possible, and parse out + * a group name as well. The original parameter will be modified to reflect this. + * @param string + * @access private + */ + function _fromFile(&$param) { if (!@is_file($param)) { $test = explode('#', $param); @@ -1269,6 +1276,7 @@ if (@is_file(implode('#', $test))) { $this->setGroup($group); $param = implode('#', $test); + $this->_explicitGroup = true; } } if (@is_file($param)) {

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