cvs: pear-core /PEAR Installer.php
| From: | Greg Beaver | Date: | Fri, 13 Aug 2004 23:04:01 +0000 |
| Subject: | cvs: pear-core /PEAR Installer.php | ||
| Groups: | php.pear.cvs php.pear.core | ||
| Request: | Send a blank email to pear-cvs+get-22870@lists.php.net to get a copy of this message | ||
cellog Fri Aug 13 19:04:01 2004 EDT
Modified files:
/pear-core/PEAR Installer.php
Log:
fix upgrade with --nodeps and channels
bogus file conflicts with the installed package were reported
http://cvs.php.net/diff.php/pear-core/PEAR/Installer.php?r1=1.151&r2=1.152&ty=u
Index: pear-core/PEAR/Installer.php
diff -u pear-core/PEAR/Installer.php:1.151 pear-core/PEAR/Installer.php:1.152
--- pear-core/PEAR/Installer.php:1.151 Sun Jul 4 00:25:08 2004
+++ pear-core/PEAR/Installer.php Fri Aug 13 19:04:01 2004
@@ -18,7 +18,7 @@
// | Martin Jansen <mj@php.net> |
// +----------------------------------------------------------------------+
//
-// $Id: Installer.php,v 1.151 2004/07/04 04:25:08 cellog Exp $
+// $Id: Installer.php,v 1.152 2004/08/13 23:04:01 cellog Exp $
require_once 'PEAR/Downloader.php';
@@ -701,9 +701,11 @@
$test = $this->_registry->checkFileMap($pkginfo['filelist'],
$pkginfo['package']);
if (sizeof($test)) {
$tmp = $test;
+ $channel = isset($pkginfo['channel']) ? $pkginfo['channel'] :
'pear';
foreach ($tmp as $file => $pkg) {
if (is_array($pkg)) {
- if (strtolower($pkg[0]) == strtolower($pkgname)) {
+ if (strtolower($pkg[1]) == strtolower($pkgname) &&
+ strtolower($pkg[0]) == strtolower($channel)) {
unset($test[$file]);
}
} else {
@@ -712,7 +714,6 @@
}
}
}
- $channel = isset($pkginfo['channel']) ? $pkginfo['channel'] :
'pear';
if (sizeof($test)) {
$msg = "$channel::$pkgname: conflicting files found:\n";
$longest = max(array_map("strlen", array_keys($test)));