cvs: pear-core /PEAR Installer.php

From: Date: Mon, 21 Feb 2005 02:39:27 +0000
Subject: cvs: pear-core /PEAR Installer.php
Groups: php.pear.cvs php.pear.core 
Request: Send a blank email to pear-cvs+get-29592@lists.php.net to get a copy of this message
cellog Sun Feb 20 21:39:27 2005 EDT Modified files: /pear-core/PEAR Installer.php Log: more PEAR => PECL magic: don't allow upgrades of new packages in pecl.php.net-land to conflict with their ancient and revered pear.php.net-land ancestors http://cvs.php.net/diff.php/pear-core/PEAR/Installer.php?r1=1.192&r2=1.193&ty=u Index: pear-core/PEAR/Installer.php diff -u pear-core/PEAR/Installer.php:1.192 pear-core/PEAR/Installer.php:1.193 --- pear-core/PEAR/Installer.php:1.192 Sun Feb 20 00:18:54 2005 +++ pear-core/PEAR/Installer.php Sun Feb 20 21:39:26 2005 @@ -19,7 +19,7 @@ // | Greg Beaver <cellog@php.net> | // +----------------------------------------------------------------------+ // -// $Id: Installer.php,v 1.192 2005/02/20 05:18:54 cellog Exp $ +// $Id: Installer.php,v 1.193 2005/02/21 02:39:26 cellog Exp $ require_once "OS/Guess.php"; require_once 'PEAR/Downloader.php'; @@ -990,6 +990,18 @@ $parentpkg = &$pfk->fromArray($parentreg); $this->_registry->updatePackage2($parentpkg); } + if ($param->getChannel() == 'pecl.php.net' && isset($options['upgrade'])) { + $tmp = $test; + foreach ($tmp as $file => $info) { + if (is_string($info)) { + // pear.php.net packages are always stored as strings + if (strtolower($info) == strtolower($param->getPackage())) { + // upgrading existing package + unset($test[$file]); + } + } + } + } if (sizeof($test)) { $msg = "$channel/$pkgname: conflicting files found:\n"; $longest = max(array_map("strlen", array_keys($test)));

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