svn: /pear2/Pyrus/trunk/src/Pyrus/Registry/ Xml.php

From: Date: Fri, 29 Jan 2010 20:39:00 +0000
Subject: svn: /pear2/Pyrus/trunk/src/Pyrus/Registry/ Xml.php
Groups: php.pear.cvs php.pear.core 
Request: Send a blank email to pear-core+get-9174@lists.php.net to get a copy of this message
saltybeagle Fri, 29 Jan 2010 20:39:00 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=294233 Log: Prevent uninstall being called twice when upgrading a package. Normally this isn't an issue, except when the registry is committed to svn and contains a .svn dir which is not removed on uninstall. A better way of filesystem manipulation on uninstalls & upgrades should be thought of for registries used in VCS. Changed paths: U pear2/Pyrus/trunk/src/Pyrus/Registry/Xml.php Modified: pear2/Pyrus/trunk/src/Pyrus/Registry/Xml.php =================================================================== --- pear2/Pyrus/trunk/src/Pyrus/Registry/Xml.php 2010-01-29 19:42:55 UTC (rev 294232) +++ pear2/Pyrus/trunk/src/Pyrus/Registry/Xml.php 2010-01-29 20:39:00 UTC (rev 294233) @@ -87,8 +87,7 @@ if ($this->readonly) { throw new Exception('Cannot install package, registry is read-only'); } - // remove previously installed version for upgrade - $this->uninstall($info->name, $info->channel); + $packagefile = $this->_nameRegistryPath($info); if (!@is_dir(dirname($packagefile))) { mkdir(dirname($packagefile), 0755, true);

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