cvs: pear-core /PEAR Registry.php

From: Date: Wed, 15 Dec 2004 02:45:35 +0000
Subject: cvs: pear-core /PEAR Registry.php
Groups: php.pear.cvs php.pear.core 
Request: Send a blank email to pear-cvs+get-27410@lists.php.net to get a copy of this message
cellog Tue Dec 14 21:45:35 2004 EDT Modified files: /pear-core/PEAR Registry.php Log: remove old aliases on updating a channel http://cvs.php.net/diff.php/pear-core/PEAR/Registry.php?r1=1.99&r2=1.100&ty=u Index: pear-core/PEAR/Registry.php diff -u pear-core/PEAR/Registry.php:1.99 pear-core/PEAR/Registry.php:1.100 --- pear-core/PEAR/Registry.php:1.99 Tue Dec 14 21:29:04 2004 +++ pear-core/PEAR/Registry.php Tue Dec 14 21:45:33 2004 @@ -18,7 +18,7 @@ // | | // +----------------------------------------------------------------------+ // -// $Id: Registry.php,v 1.99 2004/12/15 02:29:04 cellog Exp $ +// $Id: Registry.php,v 1.100 2004/12/15 02:45:33 cellog Exp $ /* TODO: @@ -670,6 +670,10 @@ if (!$update) { return false; } + $checker = $this->_getChannel($channel->getName()); + if ($channel->getAlias() != $checker->getAlias()) { + @unlink($this->_getChannelAliasFileName($checker->getAlias())); + } } else { if ($update) { return false;

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