cvs: pear /PEAR_PackageFileManager PackageFileManager.php

From: Date: Mon, 28 Mar 2005 06:52:49 +0000
Subject: cvs: pear /PEAR_PackageFileManager PackageFileManager.php
Groups: php.pear.cvs 
Request: Send a blank email to pear-cvs+get-30727@lists.php.net to get a copy of this message
cellog Mon Mar 28 01:52:49 2005 EDT Modified files: /pear/PEAR_PackageFileManager PackageFileManager.php Log: fix importOptions() http://cvs.php.net/diff.php/pear/PEAR_PackageFileManager/PackageFileManager.php?r1=1.40&r2=1.41&ty=u Index: pear/PEAR_PackageFileManager/PackageFileManager.php diff -u pear/PEAR_PackageFileManager/PackageFileManager.php:1.40 pear/PEAR_PackageFileManager/PackageFileManager.php:1.41 --- pear/PEAR_PackageFileManager/PackageFileManager.php:1.40 Sat Mar 26 12:39:30 2005 +++ pear/PEAR_PackageFileManager/PackageFileManager.php Mon Mar 28 01:52:48 2005 @@ -16,7 +16,7 @@ // | Web http://www.phpdoc.org | // | Mirror http://phpdocu.sourceforge.net/ | // +------------------------------------------------------------------------+ -// $Id: PackageFileManager.php,v 1.40 2005/03/26 17:39:30 cellog Exp $ +// $Id: PackageFileManager.php,v 1.41 2005/03/28 06:52:48 cellog Exp $ // /** @@ -561,22 +561,23 @@ $this->_options['cleardependencies'] = false; $this->_options['deps'] = false; $this->_options['maintainers'] = false; - if (PEAR::isError($res = $this->_getExistingPackageXML(dirname($packagefile), - basename($packagefile)))) { + if (PEAR::isError($res = $this->_getExistingPackageXML(dirname($packagefile) . + DIRECTORY_SEPARATOR, basename($packagefile)))) { return $res; } - $this->_options['package'] = $this->_packagexml['package']; - $this->_options['summary'] = $this->_packagexml['summary']; - $this->_options['description'] = $this->_packagexml['description']; - $this->_options['date'] = $this->_packagexml['release_date']; - $this->_options['version'] = $this->_packagexml['version']; - $this->_options['license'] = $this->_packagexml['release_license']; - $this->_options['state'] = $this->_packagexml['release_state']; - $this->_options['notes'] = $this->_packagexml['release_notes']; - if (isset($this->_packagexml['release_deps'])) { - $this->_options['deps'] = $this->_packagexml['release_deps']; + $this->_options['package'] = $this->_oldPackageXml['package']; + $this->_options['summary'] = $this->_oldPackageXml['summary']; + $this->_options['description'] = $this->_oldPackageXml['description']; + $this->_options['date'] = $this->_oldPackageXml['release_date']; + $this->_options['version'] = $this->_oldPackageXml['version']; + $this->_options['license'] = $this->_oldPackageXml['release_license']; + $this->_options['state'] = $this->_oldPackageXml['release_state']; + $this->_options['notes'] = $this->_oldPackageXml['release_notes']; + if (isset($this->_oldPackagexml['release_deps'])) { + $this->_options['deps'] = $this->_oldPackageXml['release_deps']; } - $this->_options['maintainers'] = $this->_packagexml['maintainers']; + $this->_options['maintainers'] = $this->_oldPackageXml['maintainers']; + return true; } /**

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