svn: /pear/pear-core/trunk/PEAR/Command/ Package.php

From: Date: Sun, 02 Aug 2009 15:41:30 +0000
Subject: svn: /pear/pear-core/trunk/PEAR/Command/ Package.php
Groups: php.pear.cvs php.pear.core 
Request: Send a blank email to pear-cvs+get-56839@lists.php.net to get a copy of this message
dufuz Sun, 02 Aug 2009 15:41:30 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=286674 Log: even if it's not a file, if the package-dependencies call ends with .xml then we pass it like it would be a file. Changed paths: U pear/pear-core/trunk/PEAR/Command/Package.php Modified: pear/pear-core/trunk/PEAR/Command/Package.php =================================================================== --- pear/pear-core/trunk/PEAR/Command/Package.php 2009-08-02 15:41:04 UTC (rev 286673) +++ pear/pear-core/trunk/PEAR/Command/Package.php 2009-08-02 15:41:30 UTC (rev 286674) @@ -768,7 +768,7 @@ } $obj = &$this->getPackageFile($this->config, $this->_debug); - if (is_file($params[0])) { + if (is_file($params[0]) || strpos($params[0], '.xml') > 0) { $info = $obj->fromAnyFile($params[0], PEAR_VALIDATE_NORMAL); } else { $reg = $this->config->getRegistry();

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