svn: /pear/pear-core/trunk/PEAR/ Installer.php
| From: | Helgi Þormar Þorbjörnsson | Date: | Fri, 25 Feb 2011 23:31:16 +0000 |
| Subject: | svn: /pear/pear-core/trunk/PEAR/ Installer.php | ||
| Groups: | php.pear.cvs php.pear.core | ||
| Request: | Send a blank email to pear-core+get-9742@lists.php.net to get a copy of this message | ||
dufuz Fri, 25 Feb 2011 23:31:16 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=308692
Log:
Remove a debug if statement.
Changed paths:
U pear/pear-core/trunk/PEAR/Installer.php
Modified: pear/pear-core/trunk/PEAR/Installer.php
===================================================================
--- pear/pear-core/trunk/PEAR/Installer.php 2011-02-25 23:25:02 UTC (rev 308691)
+++ pear/pear-core/trunk/PEAR/Installer.php 2011-02-25 23:31:16 UTC (rev 308692)
@@ -767,19 +767,17 @@
* This can happen when a file moves from package A to B in
* an upgrade ala http://pear.php.net/17986
*/
- if ($this->pkginfo->getName() == 'PHPUnit') {
- $info = array(
- 'package' =>
strtolower($this->pkginfo->getName()),
- 'channel' =>
strtolower($this->pkginfo->getChannel()),
- );
- $result = $this->_registry->checkFileMap($data[0], $info,
'1.1');
- if (is_array($result)) {
- $res = array_diff($result, $info);
- if (!empty($res)) {
- $new = $this->_registry->getPackage($result[1],
$result[0]);
- $this->file_operations[$key] = false;
- $this->log(3, "file $data[0] was scheduled for removal
from {$this->pkginfo->getName()} but is owned by {$new->getChannel()}/{$new->getName()},
removal has been cancelled.");
- }
+ $info = array(
+ 'package' => strtolower($this->pkginfo->getName()),
+ 'channel' =>
strtolower($this->pkginfo->getChannel()),
+ );
+ $result = $this->_registry->checkFileMap($data[0], $info,
'1.1');
+ if (is_array($result)) {
+ $res = array_diff($result, $info);
+ if (!empty($res)) {
+ $new = $this->_registry->getPackage($result[1], $result[0]);
+ $this->file_operations[$key] = false;
+ $this->log(3, "file $data[0] was scheduled for removal from
{$this->pkginfo->getName()} but is owned by {$new->getChannel()}/{$new->getName()},
removal has been cancelled.");
}
}
}