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

From: Date: Mon, 28 Mar 2005 17:40:49 +0000
Subject: cvs: pear-core /PEAR/Command Package.php
Groups: php.pear.cvs php.pear.core 
Request: Send a blank email to pear-cvs+get-30739@lists.php.net to get a copy of this message
cellog Mon Mar 28 12:40:49 2005 EDT Modified files: /pear-core/PEAR/Command Package.php Log: fix fatal error http://cvs.php.net/diff.php/pear-core/PEAR/Command/Package.php?r1=1.101&r2=1.102&ty=u Index: pear-core/PEAR/Command/Package.php diff -u pear-core/PEAR/Command/Package.php:1.101 pear-core/PEAR/Command/Package.php:1.102 --- pear-core/PEAR/Command/Package.php:1.101 Mon Mar 21 12:53:24 2005 +++ pear-core/PEAR/Command/Package.php Mon Mar 28 12:40:49 2005 @@ -18,7 +18,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.101 2005/03/21 17:53:24 cellog Exp $ + * @version CVS: $Id: Package.php,v 1.102 2005/03/28 17:40:49 cellog Exp $ * @link http://pear.php.net/package/PEAR * @since File available since Release 0.1 */ @@ -589,6 +589,9 @@ $pname = $reg->parsePackageName($options['package'], $this->config->get('default_channel')); $package = &$reg->getPackage($pname['package'], $pname['channel']); + if (!$package) { + return PEAR::raiseError('Unknown package "' . $options['package'] . '"'); + } $filelist = $package->getFilelist(); foreach ($filelist as $name => $atts) { if ($atts['role'] != 'test') {

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