cvs: pear-core /PEAR/PackageFile v2.php

From: Date: Thu, 28 Oct 2004 03:59:17 +0000
Subject: cvs: pear-core /PEAR/PackageFile v2.php
Groups: php.pear.cvs php.pear.core 
Request: Send a blank email to pear-core+get-1172@lists.php.net to get a copy of this message
cellog Wed Oct 27 23:59:17 2004 EDT Modified files: /pear-core/PEAR/PackageFile v2.php Log: remove unused packageInfo() method, only v1 uses it for replacements in the installer http://cvs.php.net/diff.php/pear-core/PEAR/PackageFile/v2.php?r1=1.37&r2=1.38&ty=u Index: pear-core/PEAR/PackageFile/v2.php diff -u pear-core/PEAR/PackageFile/v2.php:1.37 pear-core/PEAR/PackageFile/v2.php:1.38 --- pear-core/PEAR/PackageFile/v2.php:1.37 Wed Oct 27 01:11:12 2004 +++ pear-core/PEAR/PackageFile/v2.php Wed Oct 27 23:59:17 2004 @@ -17,7 +17,7 @@ // | | // +----------------------------------------------------------------------+ // -// $Id: v2.php,v 1.37 2004/10/27 05:11:12 cellog Exp $ +// $Id: v2.php,v 1.38 2004/10/28 03:59:17 cellog Exp $ require_once 'PEAR/ErrorStack.php'; require_once 'PEAR/Validate.php'; require_once 'PEAR/PackageFile/Generator/v2.php'; @@ -266,41 +266,6 @@ return $this->_archiveFile; } - - function packageInfo($field) - { - $map = array( - 'release_notes' => 'notes', - 'release-license' => 'license', - 'release_date' => 'date'); - $field = isset($map[$field]) ? $map[$field] : $field; - if (!in_array($field, - array('name', 'summary', 'channel', 'notes', 'extends', 'description', - 'release_notes', 'license', 'license-uri', - 'version', 'api-version', 'state', 'api-state', - 'date', 'time'))) { - return false; - } - if (method_exists($this, "get$field")) { - $test = $this->{"get$field"}(); - if (is_string($test)) { - return $test; - } - } - if ($field == 'license-uri') { - if (isset($this->_packageInfo['license']['attribs']['uri'])) { - return $this->_packageInfo['license']['attribs']['uri']; - } - } - if ($field == 'api-state') { - return $this->getState('api'); - } - if ($field == 'api-version') { - return $this->getVersion('api'); - } - return false; - } - /** * This should only be used to retrieve filenames and install attributes */

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