cvs: pear /PEAR_PackageFileManager PackageFileManager.php
| From: | Laurent Laville | Date: | Tue, 17 Jan 2006 12:27:54 +0000 |
| Subject: | cvs: pear /PEAR_PackageFileManager PackageFileManager.php | ||
| Groups: | php.pear.cvs | ||
| Request: | Send a blank email to pear-cvs+get-37609@lists.php.net to get a copy of this message | ||
farell Tue Jan 17 12:27:54 2006 UTC
Modified files:
/pear/PEAR_PackageFileManager PackageFileManager.php
Log:
- fixed bug #6507 deps are lost after importing a package v1
- now 'cleardependencies' may be set to true or false on an import options
depending if you want to import all existing package options with or without dependencies
http://cvs.php.net/viewcvs.cgi/pear/PEAR_PackageFileManager/PackageFileManager.php?r1=1.49&r2=1.50&diff_format=u
Index: pear/PEAR_PackageFileManager/PackageFileManager.php
diff -u pear/PEAR_PackageFileManager/PackageFileManager.php:1.49
pear/PEAR_PackageFileManager/PackageFileManager.php:1.50
--- pear/PEAR_PackageFileManager/PackageFileManager.php:1.49 Mon Jan 9 11:08:20 2006
+++ pear/PEAR_PackageFileManager/PackageFileManager.php Tue Jan 17 12:27:54 2006
@@ -16,7 +16,7 @@
// | Web http://www.phpdoc.org
|
// | Mirror http://phpdocu.sourceforge.net/
|
// +------------------------------------------------------------------------+
-// $Id: PackageFileManager.php,v 1.49 2006/01/09 11:08:20 farell Exp $
+// $Id: PackageFileManager.php,v 1.50 2006/01/17 12:27:54 farell Exp $
//
/**
@@ -575,7 +575,7 @@
*/
function importOptions($packagefile, $options = array())
{
- $options['cleardependencies'] = $options['deps'] =
$options['maintainers'] = false;
+ $options['deps'] = $options['maintainers'] = false;
$this->setOptions($options, true);
if (PEAR::isError($res = $this->_getExistingPackageXML(dirname($packagefile) .
DIRECTORY_SEPARATOR, basename($packagefile)))) {
@@ -589,11 +589,11 @@
$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'];
- }
- $options['maintainers'] = $this->_options['maintainers'] =
$this->_oldPackageXml['maintainers'];
$this->setOptions($options, true);
+ if (isset($this->_packageXml['release_deps'])) {
+ $this->_options['deps'] = $this->_packageXml['release_deps'];
+ }
+ $this->_options['maintainers'] =
$this->_oldPackageXml['maintainers'];
return true;
}